Kronuz/pyScss — pull request #92 by henninge (2012-08-09 12:45:05+00:00)
Title: Command line tool stopped working.

Hi!

Thanks for bringing out a new version of pyScss! Unfortunately the command line tool "bin/pyscss" stopped working in this release. I get the following traceback (paths shortened to site-packages):

Traceback (most recent call last):
File "bin/pyscss", line 9, in
load_entry_point('pyScss==1.1.4', 'console_scripts', 'pyscss')()
File ".../distribute-0.6.24-py2.7.egg/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File ".../distribute-0.6.24-py2.7.egg/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File ".../distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1994, in load
raise ImportError("%r has no %r attribute" % (entry,attr))
ImportError: has no 'main' attribute

This seems to be related to what is configured in entry_points.txt/setup.py but my setuptools foo is not high enough to know what needs to be done.

So I tried running it as described in the readme as "python -mscss" but that failed on import errors for "__init__" and "scss_meta". I guess this has to do with relative imports not working properly, so this patch replaces them with absolute imports from "scss". Or am I missing another reason why this might not be working?

Cheers,
Henning