allow -R ...pyc, fixed issue 1186, thanks Corne.Dickens
This commit is contained in:
1 parent
ef8f10c42d
commit
568c33d7d6
2 files changed
+7
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.2.1 (2012-11-29 17:12:52) stable
|
Version 2.2.1 (2012-11-29 18:20:27) stable
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in new issue
Block a user