summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-08-27 13:31:20 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-08-27 13:31:20 (GMT)
commit42159886dc91b1b300bbb925e55f09f81c5266a6 (patch)
tree3c1f5bd093b0908a181094c8ce868fbe4cc6ee50
parente7d34ce0828ecad4bbe8310d1e54e39b406376b9 (diff)
downloadmisc-fred-42159886dc91b1b300bbb925e55f09f81c5266a6.zip
misc-fred-42159886dc91b1b300bbb925e55f09f81c5266a6.tar.gz
misc-fred-42159886dc91b1b300bbb925e55f09f81c5266a6.tar.bz2
sassw: use current directory as default
-rwxr-xr-xbin/sassw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sassw b/bin/sassw
index 05dc4b4..fac0abb 100755
--- a/bin/sassw
+++ b/bin/sassw
@@ -14,7 +14,7 @@ import subprocess
import sys
import time
-filename = sys.argv[1]
+filename = sys.argv[1] if len(sys.argv) > 1 else '.'
if os.path.isdir(filename):
scss_filenames = [x for x in os.listdir(filename) if x.startswith('_') and x.endswith('.scss')]
if not scss_filenames: