You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: