sassw: fix detection of main scss file

This commit is contained in:
Frédéric Péters 2019-08-27 15:31:36 +02:00
parent 42159886dc
commit 77f093a9d3
1 changed files with 1 additions and 1 deletions

View File

@ -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])