fixed pythonrc, thanks Vlad
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-05-28 19:14:35) dev
|
Version 2.00.0 (2012-05-29 00:19:18) dev
|
||||||
|
|||||||
+3
-2
@@ -146,7 +146,8 @@ def exec_pythonrc():
|
|||||||
try:
|
try:
|
||||||
return execfile_getlocals(pythonrc)
|
return execfile_getlocals(pythonrc)
|
||||||
except NameError:
|
except NameError:
|
||||||
return dict()
|
pass
|
||||||
|
return dict()
|
||||||
|
|
||||||
|
|
||||||
def run(
|
def run(
|
||||||
@@ -205,7 +206,7 @@ def run(
|
|||||||
exec ('print %s()' % f, _env)
|
exec ('print %s()' % f, _env)
|
||||||
return
|
return
|
||||||
|
|
||||||
_env.update(exec_pythonrc() or {})
|
_env.update(exec_pythonrc())
|
||||||
if startfile:
|
if startfile:
|
||||||
try:
|
try:
|
||||||
execfile(startfile, _env)
|
execfile(startfile, _env)
|
||||||
|
|||||||
Reference in New Issue
Block a user