Skip to content
This repository was archived by the owner on Jun 28, 2018. It is now read-only.

Commit b767020

Browse files
author
psychowico
committed
create directory in output folder if it not exists
1 parent be81330 commit b767020

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lesscss/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ def compile(self):
131131
if less_time >= css_time:
132132
command_opt.append(i)
133133
command_opt.append(css)
134+
css_dir = os.path.dirname(css)
135+
if not os.path.exists(css_dir):
136+
os.mkdir(css_dir)
134137
subprocess.call(command_opt, shell=False)
135138
if self._based:
136139
del command_opt[-1]

0 commit comments

Comments
 (0)