Got sick of typing "python start.py development.py" and having things not work, so now we detect this scenario and strip off the file extension.

This commit is contained in:
Jonathan LaCour
2010-12-30 14:27:48 -05:00
parent 77d2b5626d
commit 11f6c0390d

View File

@@ -138,6 +138,9 @@ def conf_from_dict(conf_dict):
return conf
def import_module(conf):
if conf.endswith('.py'):
conf = conf[:-3]
if '.' in conf:
parts = conf.split('.')
name = '.'.join(parts[:-1])