summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2014-07-23 09:39:12 -0500
committerGerman M. Bravo <german.mb@deipi.com>2014-07-23 09:58:08 -0500
commit38d5c3275b128c699ee761c4040d5a2284772d3b (patch)
tree6e4e2fea2449c50e7ff401944d9d57c11aa9c214
parenta10cfb98b69db3023d1cc1de304f525e97f68430 (diff)
downloadpyscss-38d5c3275b128c699ee761c4040d5a2284772d3b.tar.gz
Accept '-' as the stdin file name
-rw-r--r--scss/tool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/tool.py b/scss/tool.py
index 55e408a..d3a567c 100644
--- a/scss/tool.py
+++ b/scss/tool.py
@@ -175,7 +175,7 @@ def do_build(options, args):
})
if args:
source_files = [
- SourceFile.from_filename(path, is_sass=options.is_sass)
+ SourceFile.from_file(sys.stdin, "<stdin>", is_sass=options.is_sass) if path == '-' else SourceFile.from_filename(path, is_sass=options.is_sass)
for path in args
]
else: