Home
last modified time | relevance | path

Searched refs:__file__ (Results 1 - 25 of 575) sorted by relevance

12345678910>>...23

/third_party/python/Lib/test/
H A Dregrtest.py19 global __file__
34 # findtestdir() gets the dirname out of __file__, so we have to make it
36 # For example __file__ may be relative when running trace or profile.
38 __file__ = os.path.abspath(__file__)
41 assert __file__ == os.path.abspath(sys.argv[0])
H A Dtest_trace.py29 """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__)[
[all...]
H A Dtest_zipimport.py33 return __file__
338 self.assertEqual("path1.zip", mod.__file__.split(os.sep)[-3])
343 mod.__file__.split(os.sep)[-3])
356 mod.__file__.split(os.sep)[-4])
361 mod.__file__.split(os.sep)[-4])
365 self.assertEqual('path1.zip', mod.__file__.split(os.sep)[-4])
414 self.assertEqual("path1.zip", mod.__file__.split(os.sep)[-3])
418 self.assertEqual("path2.zip", mod.__file__.split(os.sep)[-3])
430 self.assertEqual('path2.zip', mod.__file__.split(os.sep)[-4])
434 self.assertEqual('path2.zip', mod.__file__
[all...]
H A Dtest_bdb.py110 if filename == __file__:
326 if fname == self.canonic(__file__) else lineno)
330 if (lineno and self.canonic(fname) == self.canonic(__file__))
550 def break_in_func(funcname, fname=__file__, temporary=False, cond=None):
604 ('call', 1, 'tfunc_first'), ('break', (__file__, 3)),
956 ('line', 2, 'tfunc_import'), ('clear', (__file__, 1))
964 fname = db1.canonic(__file__)
965 db1.set_break(__file__, 1)
969 db2.set_break(__file__, 2)
970 db2.set_break(__file__,
[all...]
H A Dtest_imp.py81 path = [os.path.dirname(__file__)]
206 path = os.path.dirname(__file__)
317 loader = imp._LoadSourceCompatibility('imp', imp.__file__,
318 open(imp.__file__, encoding="utf-8"))
319 loader.get_data(imp.__file__) # File should be closed
320 loader.get_data(imp.__file__) # Will need to create a newly opened file
329 imp.load_source(modname, __file__ + "\0")
/third_party/protobuf/benchmarks/util/
H A Dresult_parser.py8 sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
16 filename = os.path.dirname(os.path.abspath(__file__)) + "/../" + filename
62 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
97 filename = os.path.dirname(os.path.abspath(__file__)) + "/" + filename
127 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
177 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
213 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
253 filename = os.path.dirname(os.path.abspath(__file__)) + '/' + filename
/third_party/python/Lib/test/test_importlib/
H A Dtest_resource.py47 file=data01, path=data01.__file__, contents=['A', 'B', 'C']
53 file=data01, path=data01.__file__, contents=['A', 'B', 'C', 'D/E', 'D/F']
59 file=data01, path=data01.__file__, contents=['A', 'B', 'C', 'D/E', 'D/F']
65 file=data01, path=data01.__file__, contents=['A', 'B', 'C', 'D/E', 'D/F']
77 file=data01, path=data01.__file__, contents=['A', 'B', 'C']
82 module.__file__ = '/path/which/shall/not/be/named'
84 module.__spec__.origin = module.__file__
144 data_path = pathlib.Path(self.ZIP_MODULE.__file__)
212 site_dir = str(pathlib.Path(__file__).parent)
H A Dtest_reader.py13 path = pathlib.Path(__file__).parent / 'namespacedata01'
33 data01 = os.path.abspath(os.path.join(__file__, '..', 'data01'))
63 prefix = os.path.abspath(os.path.join(__file__, '..'))
93 site_dir = str(pathlib.Path(__file__).parent)
111 root = os.path.abspath(os.path.join(__file__, '..', 'namespacedata01'))
122 root = os.path.abspath(os.path.join(__file__, '..', 'namespacedata01'))
H A Dtest_namespace_pkgs.py62 root = os.path.join(os.path.dirname(__file__), 'namespace_pkgs')
206 self.assertIn('top_level_portion1.zip', foo.one.__file__)
207 self.assertNotIn('.zip', foo.two.__file__)
231 self.assertIn(fn, foo.one.__file__)
232 self.assertNotIn('.zip', foo.two.__file__)
242 self.assertIn('__init__', foo.__file__)
369 self.assertIsNone(foo.__file__)
/third_party/python/Lib/ctypes/test/
H A Dtest_returnfuncptrs.py11 dll = CDLL(_ctypes_test.__file__)
23 dll = CDLL(_ctypes_test.__file__)
37 dll = CDLL(_ctypes_test.__file__)
53 return CDLL(_ctypes_test.__file__)
59 BadSequence(("my_strchr", CDLL(_ctypes_test.__file__))))
H A Dtest_pointers.py23 dll = CDLL(_ctypes_test.__file__)
41 dll = CDLL(_ctypes_test.__file__)
80 dll = CDLL(_ctypes_test.__file__)
146 dll = CDLL(_ctypes_test.__file__)
/third_party/vk-gl-cts/external/vulkancts/scripts/
H A Dgen_framework_c.py28 scriptPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")
34 VULKAN_HEADERS_INCLUDE_DIR = os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include")
42 "SC" : [ os.path.join(os.path.dirname(__file__), "src", "vulkan_sc_core.h") ] }
43 DEFAULT_OUTPUT_DIR = { "" : os.path.join(os.path.dirname(__file__), "..", "framework", "vulkan", "generated", "vulkan"),
44 "SC" : os.path.join(os.path.dirname(__file__), "..", "framework", "vulkan", "generated", "vulkansc") }
H A Dohos_gen_framework_c.py29 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
34 VULKAN_HEADERS_INCLUDE_DIR = os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include")
42 "SC" : [ os.path.join(os.path.dirname(__file__), "src", "vulkan_sc_core.h") ] }
43 DEFAULT_OUTPUT_DIR = { "" : os.path.join(os.path.dirname(__file__), "..", "framework", "vulkan", "generated", "vulkan"),
44 "SC" : os.path.join(os.path.dirname(__file__), "..", "framework", "vulkan", "generated", "vulkansc") }
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_query.py188 ('', lambda a,b,c: __file__, __file__),
190 ('htest', lambda a,b,c: __file__, __file__)):
220 dialog = self.Dummy_HelpSource(__file__ + 'bad-bad-bad')
238 dialog.path.set(__file__)
239 self.assertEqual(dialog.path_ok(), prefix + __file__)
422 filepath=__file__, _utest=True)
425 Equal(dialog.path.get(), __file__)
428 Equal(dialog.result, ('__test__', prefix + __file__))
[all...]
/third_party/python/Lib/importlib/
H A D__init__.py26 _bootstrap.__file__ = __file__.replace('__init__.py', '_bootstrap.py')
28 # __file__ is not guaranteed to be defined, e.g. if this code gets
43 _bootstrap_external.__file__ = __file__.replace('__init__.py', '_bootstrap_external.py')
45 # __file__ is not guaranteed to be defined, e.g. if this code gets
H A D_bootstrap.py310 filename = module.__file__
339 When this is True, `__file__` attribute of the module is set.
469 location = module.__file__
515 # While the docs say that module.__file__ is not set for
519 # __spec__.origin is None, and thus their module.__file__
525 module.__file__ = None
549 # __file__/__cached__
551 if override or getattr(module, '__file__', None) is None:
553 module.__file__ = spec.origin
852 assert not hasattr(module, '__file__'), modul
[all...]
/third_party/vk-gl-cts/external/openglcts/scripts/
H A Dverify_kc_cts_rev.py29 sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
32 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
36 EXTERNAL_DIR = os.path.realpath(os.path.normpath(os.path.join(os.path.dirname(__file__), "..", "..")))
/third_party/googletest/googlemock/scripts/generator/
H A Dgmock_gen.py25 sys.path.append(os.path.dirname(__file__))
29 gmock_class.__doc__ = gmock_class.__doc__.replace('gmock_class.py', __file__)
/third_party/python/Lib/test/test_import/
H A D__init__.py96 self.assertEqual(cm.exception.path, os.__file__)
105 if hasattr(_testcapi, "__file__"):
106 self.assertEqual(cm.exception.path, _testcapi.__file__)
271 self.assertTrue(hasattr(test.support, "__file__"))
334 # check if __file__ points to the source file where available
342 self.assertTrue(mod.__file__.endswith('.py'))
348 base, ext = os.path.splitext(mod.__file__)
460 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'data'))
632 module_filename = __file__
762 self.assertTrue(mod.__file__
[all...]
/third_party/alsa-lib/modules/mixer/simple/python/
H A Dmain.py8 path.insert(0, dirname(__file__))
11 execfile(dirname(__file__)+'/'+module+'.py', globals())
/third_party/vk-gl-cts/external/
H A Dfetch_kc_cts.py30 scriptPath = os.path.join(os.path.dirname(__file__), "..", "scripts")
35 EXTERNAL_DIR = os.path.realpath(os.path.normpath(os.path.dirname(__file__)))
/third_party/python/Lib/lib2to3/
H A Dpygram.py15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
16 _PATTERN_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__),
/third_party/python/Lib/distutils/tests/
H A Dtest_dep_util.py16 old_file = os.path.abspath(__file__)
39 three = os.path.abspath(__file__) # I am the old file
55 old_file = os.path.abspath(__file__)
/third_party/node/deps/v8/tools/
H A Dfind_depot_tools.py33 root_dir = os.path.dirname(os.path.abspath(__file__))
34 previous_dir = os.path.abspath(__file__)
/third_party/mesa3d/src/vulkan/util/
H A Dvk_dispatch_trampolines_gen.py173 filename=os.path.basename(__file__)))
177 filename=os.path.basename(__file__)))

Completed in 13 milliseconds

12345678910>>...23