Lines Matching refs:__file__
29 """The .py file and module name of this file (__file__)"""
30 modname = os.path.splitext(os.path.basename(__file__))[0]
31 return fix_ext_py(__file__), modname
130 self.my_py_filename = fix_ext_py(__file__)
162 (fix_ext_py(testmod.__file__), 2): 1,
163 (fix_ext_py(testmod.__file__), 3): 1,
237 self.my_py_filename = fix_ext_py(__file__)
243 code = compile(code, __file__, 'exec')
299 (fix_ext_py(testmod.__file__), 'testmod', 'func'): 1,
342 ((os.path.splitext(trace.__file__)[0] + '.py', 'trace', 'Trace.runfunc'),
351 (fix_ext_py(testmod.__file__), 'testmod', 'func')): 1,
385 libpath = os.path.normpath(os.path.dirname(os.path.dirname(__file__)))
412 modname = trace._fullmodname(sys.modules[modname].__file__)
462 tracedir = os.path.dirname(os.path.abspath(trace.__file__))