set __file__ in CMDTEST_*.py files

This commit is contained in:
Johan Holmberg 2016-01-07 19:19:43 +01:00
parent cdd38dd5a3
commit a343141f30

View File

@ -653,6 +653,7 @@ class Tfile:
self.glob = dict()
self.glob['TestCase'] = TestCase
self.glob['__file__'] = os.path.abspath(filename)
with extra_sys_path(os.path.dirname(filename)):
exec(co, self.glob)