From a343141f3061b1be6f75b890a1cdccfe28c0340f Mon Sep 17 00:00:00 2001 From: Johan Holmberg Date: Thu, 7 Jan 2016 19:19:43 +0100 Subject: [PATCH] set __file__ in CMDTEST_*.py files --- python/cmdtest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/cmdtest.py b/python/cmdtest.py index 9a606e9..569a532 100755 --- a/python/cmdtest.py +++ b/python/cmdtest.py @@ -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)