faruken/lesscss — pull request #5 by takashi-osako (2013-02-26 18:19:05+00:00)
Title: Bug fix for PermissionError

Hi faruken,

There is a bug in the code.

How to reproduce:
I have multiple less files, and if this is my first time to generate css files, it's working okay. However, when I updated less file after css files were generated, LessCSS threw an exception:
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/lesscss-0.1.4-py3.3.egg/lesscss/__init__.py", line 71, in __init__
self.compile()
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/lesscss-0.1.4-py3.3.egg/lesscss/__init__.py", line 137, in compile
subprocess.call(command_opt, shell=False)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 521, in call
with Popen(*popenargs, **kwargs) as p:
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 818, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 1416, in _execute_child
raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied

Caused by:
It caused by deleting ['lessc', '-x']

Thank you,

Takashi