sassw: fix detection of main scss file
This commit is contained in:
parent
42159886dc
commit
77f093a9d3
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue