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

Commit be81330

Browse files
author
psychowico
committed
keep folders depends when compile files to specific output_dir
1 parent 69135c0 commit be81330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lesscss/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def compile(self):
122122
filename = os.path.splitext(i)[0]
123123
css = '%s.css' % filename
124124
if self._output:
125-
css = css.split('/')[-1]
125+
css = os.path.relpath(css, self._media)
126126
css = '%s/%s' % (self._output, css)
127127
css_time = -1 # Poor man's Integer.MIN_VALUE
128128
if os.path.isfile(css):

0 commit comments

Comments
 (0)