Running Django with Run can not find LESS CSS

I have a Django project that uses buildout. When running or debugging the application it runs fine by using my buildout script. I also use django-compressor to compress and compile my LESS files. I installed LESS server side with node and you can access the lessc binary from the shell as normal. django-compressor runs Popen to run the lessc command. When it does this and exception gets thrown: /bin/sh: lessc: command not found.

If I run /bin/sh lessc it finds it. If I drop into the interactive python and run Popen(['/bin/sh', '-c', 'lessc']) it finds it. What shell or environment does the running of Django in PyCharm use and how can I set it up to read either /etc/paths or $HOME/.bashrc, etc. lessc is located at /usr/local/bin which is in /etc/paths.

I am on Mac OSX 10.7, btw

Thanks for any support,


Please sign in to leave a comment.