parent
01848ca821
commit
1781347999
|
@ -535,7 +535,7 @@ class LocalPath(FSBase):
|
||||||
mod.__file__ = str(self)
|
mod.__file__ = str(self)
|
||||||
sys.modules[modname] = mod
|
sys.modules[modname] = mod
|
||||||
try:
|
try:
|
||||||
execfile(str(self), mod.__dict__)
|
py.builtin.execfile(str(self), mod.__dict__)
|
||||||
except:
|
except:
|
||||||
del sys.modules[modname]
|
del sys.modules[modname]
|
||||||
raise
|
raise
|
||||||
|
|
|
@ -81,7 +81,7 @@ def process_configfile(configfile, debug=False):
|
||||||
path = configfile.dirpath()
|
path = configfile.dirpath()
|
||||||
configfile_dic = {}
|
configfile_dic = {}
|
||||||
py.std.sys.path.insert(0, str(path))
|
py.std.sys.path.insert(0, str(path))
|
||||||
execfile(str(configfile), configfile_dic)
|
py.builtin.execfile(str(configfile), configfile_dic)
|
||||||
pagebreak = configfile_dic.get("pagebreak", False)
|
pagebreak = configfile_dic.get("pagebreak", False)
|
||||||
rest_sources = [py.path.local(p)
|
rest_sources = [py.path.local(p)
|
||||||
for p in configfile_dic['rest_sources']]
|
for p in configfile_dic['rest_sources']]
|
||||||
|
|
Loading…
Reference in New Issue