sspp
sspp copied to clipboard
Minor fixes for sspp
I love it... but: s.isidentifier() isn't defined for Python 2.7; so import re identifier = re.compile(r'^[^\d\W]\w*$')
Executables in my scheme of things are often links in my bin directory to some other code, so after repeatedly being bit, I've become a little paranoid. Not that init.py WOULD be a link, but: basedir = os.path.dirname(os.path.realpath(file))
I'm using importlib.import_module() instead of import(). It returns an actual module, so your variable "module" has become "mod_name" where it's a string.
Thanks for doing this. I was going crazy trying to deal with pkg_resources and the like.