diff --git a/lesscompiler.py b/lesscompiler.py index 8d22e89..22a8c14 100644 --- a/lesscompiler.py +++ b/lesscompiler.py @@ -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 = ''