allow -R ...pyc, fixed issue 1186, thanks Corne.Dickens

This commit is contained in:
mdipierro committed 2012-11-29 18:21:06 -06:00
1 parent ef8f10c42d
commit 568c33d7d6
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-11-29 17:12:52) stable Version 2.2.1 (2012-11-29 18:20:27) stable
+6
View File
@@ -220,7 +220,13 @@ def run(
_env.update(exec_pythonrc()) _env.update(exec_pythonrc())
if startfile: if startfile:
try: try:
ccode = None
if startfile.endswith('.pyc'):
ccode = read_pyc(startfile)
exec ccode in _env
else:
execfile(startfile, _env) execfile(startfile, _env)
if import_models: if import_models:
BaseAdapter.close_all_instances('commit') BaseAdapter.close_all_instances('commit')
except Exception, e: except Exception, e: