From 77f093a9d3914100a1046f2875735aa9c3f8c9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 27 Aug 2019 15:31:36 +0200 Subject: [PATCH] sassw: fix detection of main scss file --- bin/sassw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sassw b/bin/sassw index fac0abb..1c2210a 100755 --- a/bin/sassw +++ b/bin/sassw @@ -16,7 +16,7 @@ import time 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')] + scss_filenames = [x for x in os.listdir(filename) if not x.startswith('_') and x.endswith('.scss')] if not scss_filenames: print('Error: directory specified but no proper scss file within.', file=sys.stderr) filename = os.path.join(filename, scss_filenames[0])