Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lesscompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ def parseBaseDirs(self, base_dir='./', output_dir=''):
elif os.path.isdir(os.path.join(current[0], 'css')):
# the parent folder of less has a folder named css, make this the output dir
output_dir = os.path.join(current[0], 'css')
elif os.path.isdir(os.path.join(current[0], 'dist/css')):
# the parent folder of less has distribute directory 'dist/css' folder, make this the output dir
output_dir = os.path.join(current[0], 'dist/css')
else:
# no conditions have been met, compile the file to the same folder as the less file is in
output_dir = ''
Expand Down