set __file__ in CMDTEST_*.py files
This commit is contained in:
parent
cdd38dd5a3
commit
a343141f30
@ -653,6 +653,7 @@ class Tfile:
|
|||||||
|
|
||||||
self.glob = dict()
|
self.glob = dict()
|
||||||
self.glob['TestCase'] = TestCase
|
self.glob['TestCase'] = TestCase
|
||||||
|
self.glob['__file__'] = os.path.abspath(filename)
|
||||||
with extra_sys_path(os.path.dirname(filename)):
|
with extra_sys_path(os.path.dirname(filename)):
|
||||||
exec(co, self.glob)
|
exec(co, self.glob)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user