Home
last modified time | relevance | path

Searched refs:__file__ (Results 1 – 25 of 1487) sorted by relevance

12345678910>>...60

/external/python/cpython2/Lib/plat-mac/
Dappletrawmain.py41 __file__ = os.path.join(_dir, '__main__.py') variable
42 if os.path.exists(__file__):
46 sys.argv[0] = __file__
48 execfile(__file__)
50 __file__ = os.path.join(_dir, '__main__.pyc') variable
51 if os.path.exists(__file__):
55 sys.argv[0] = __file__
56 _fp = open(__file__, 'rb')
/external/python/apitools/apitools/gen/
Dgen_client_test.py27 return os.path.join(os.path.dirname(__file__), 'testdata', *path)
41 gen_client.main([gen_client.__file__, '-h'])
49 gen_client.__file__,
66 gen_client.__file__,
90 gen_client.__file__,
106 gen_client.__file__,
122 gen_client.__file__,
137 gen_client.__file__,
/external/python/cpython3/Lib/test/test_importlib/
Dtest_resource.py54 file=data01, path=data01.__file__, contents=['A', 'B', 'C'])
61 file=data01, path=data01.__file__,
67 file=data01, path=data01.__file__,
73 file=data01, path=data01.__file__,
85 file=data01, path=data01.__file__, contents=['A', 'B', 'C'])
89 module.__file__ = '/path/which/shall/not/be/named'
92 module.__spec__.origin = module.__file__
Dtest_namespace_pkgs.py58 root = os.path.join(os.path.dirname(__file__), 'namespace_pkgs')
170 self.assertIn('top_level_portion1.zip', foo.one.__file__)
171 self.assertNotIn('.zip', foo.two.__file__)
195 self.assertIn(fn, foo.one.__file__)
196 self.assertNotIn('.zip', foo.two.__file__)
206 self.assertIn('__init__', foo.__file__)
333 self.assertIsNone(foo.__file__)
Dutil.py96 changed_name = __file__.upper()
97 if changed_name == __file__:
98 changed_name = __file__.lower()
222 module.__file__ = '<mock __file__>'
277 fullname, module.__file__, loader=self,
474 path = Path(__file__)
510 path = __file__
527 data_path = Path(cls.ZIP_MODULE.__file__)
/external/python/cpython2/Lib/test/
Dtest_trace.py23 modname = os.path.splitext(os.path.basename(__file__))[0]
24 return fix_ext_py(__file__), modname
106 self.my_py_filename = fix_ext_py(__file__)
138 (fix_ext_py(testmod.__file__), 2): 1,
139 (fix_ext_py(testmod.__file__), 3): 1,
192 self.my_py_filename = fix_ext_py(__file__)
197 code = compile(code, __file__, 'exec')
239 (fix_ext_py(testmod.__file__), 'testmod', 'func'): 1,
265 ((os.path.splitext(trace.__file__)[0] + '.py', 'trace', 'Trace.runfunc'),
274 (fix_ext_py(testmod.__file__), 'testmod', 'func')): 1,
[all …]
Dtest_doctest3.txt2 Here we check that `__file__` is provided:
4 >>> type(__file__)
Dtest_warnings.py286 filename = warning_tests.__file__
288 del warning_tests.__file__
295 warning_tests.__file__ = filename
301 filename = warning_tests.__file__
304 del warning_tests.__file__
312 warning_tests.__file__ = filename
318 filename = warning_tests.__file__
322 del warning_tests.__file__
331 warning_tests.__file__ = filename
339 file_name = warning_tests.__file__
[all …]
/external/python/cpython3/Lib/test/
Dregrtest.py22 global __file__
41 __file__ = os.path.abspath(__file__)
44 assert __file__ == os.path.abspath(sys.argv[0])
Dtest_trace.py23 modname = os.path.splitext(os.path.basename(__file__))[0]
24 return fix_ext_py(__file__), modname
107 self.my_py_filename = fix_ext_py(__file__)
139 (fix_ext_py(testmod.__file__), 2): 1,
140 (fix_ext_py(testmod.__file__), 3): 1,
195 self.my_py_filename = fix_ext_py(__file__)
201 code = compile(code, __file__, 'exec')
249 (fix_ext_py(testmod.__file__), 'testmod', 'func'): 1,
280 ((os.path.splitext(trace.__file__)[0] + '.py', 'trace', 'Trace.runfunc'),
289 (fix_ext_py(testmod.__file__), 'testmod', 'func')): 1,
[all …]
Dtest_zipimport.py312 self.assertEqual("path1.zip", mod.__file__.split(os.sep)[-3])
317 mod.__file__.split(os.sep)[-3])
330 mod.__file__.split(os.sep)[-4])
335 mod.__file__.split(os.sep)[-4])
339 self.assertEqual('path1.zip', mod.__file__.split(os.sep)[-4])
388 self.assertEqual("path1.zip", mod.__file__.split(os.sep)[-3])
392 self.assertEqual("path2.zip", mod.__file__.split(os.sep)[-3])
404 self.assertEqual('path2.zip', mod.__file__.split(os.sep)[-4])
408 self.assertEqual('path2.zip', mod.__file__.split(os.sep)[-4])
412 self.assertEqual('path1.zip', mod.__file__.split(os.sep)[-4])
[all …]
Dtest_doctest3.txt2 Here we check that `__file__` is provided:
4 >>> type(__file__)
/external/python/cpython2/Lib/ctypes/test/
Dtest_returnfuncptrs.py12 dll = CDLL(_ctypes_test.__file__)
22 dll = CDLL(_ctypes_test.__file__)
36 dll = CDLL(_ctypes_test.__file__)
52 return CDLL(_ctypes_test.__file__)
58 BadSequence(("my_strchr", CDLL(_ctypes_test.__file__))))
/external/python/cpython3/Lib/ctypes/test/
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__))))
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_query.py166 ('', lambda a,b,c: __file__, __file__),
168 ('htest', lambda a,b,c: __file__, __file__)):
199 dialog = self.Dummy_HelpSource(__file__ + 'bad-bad-bad')
217 dialog.path.set(__file__)
218 self.assertEqual(dialog.path_ok(), prefix + __file__)
339 filepath=__file__, _utest=True)
342 Equal(dialog.path.get(), __file__)
345 Equal(dialog.result, ('__test__', prefix + __file__))
/external/python/setuptools/setuptools/
Dscript (dev).tmpl4 __file__ = %(dev_path)r
5 exec(compile(open(__file__).read(), __file__, 'exec'))
/external/python/cpython3/Lib/test/test_import/
D__init__.py90 self.assertEqual(cm.exception.path, os.__file__)
99 self.assertEqual(cm.exception.path, _testcapi.__file__)
306 self.assertTrue(mod.__file__.endswith('.py'))
312 base, ext = os.path.splitext(mod.__file__)
417 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'data'))
670 self.assertTrue(mod.__file__.startswith(unc), mod.__file__)
724 path = os.path.join(os.path.dirname(__file__), 'data', 'package2')
733 DirsOnSysPath(os.path.join(os.path.dirname(__file__), 'data')):
831 self.assertEqual(m.__file__,
979 self.assertTrue(mod.__file__.endswith('_bootstrap.py'), mod.__file__)
[all …]
/external/toolchain-utils/android_bench_suite/
Dapply_patches.py27 os.path.dirname(os.path.realpath(__file__)), 'skia_aosp.diff')
44 os.path.dirname(os.path.realpath(__file__)), 'autotest.diff')
63 os.path.dirname(os.path.realpath(__file__)), 'panorama.diff')
85 os.path.dirname(os.path.realpath(__file__)), 'synthmark.diff')
/external/deqp/external/vulkancts/scripts/
Dgen_framework_c.py27 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
32 VULKAN_H = os.path.join(os.path.dirname(__file__), "src", "vulkan.h.in")
33 VULKAN_DIR = os.path.join(os.path.dirname(__file__), "..", "framework", "vulkan")
/external/python/cpython3/Lib/importlib/
D__init__.py26 _bootstrap.__file__ = __file__.replace('__init__.py', '_bootstrap.py')
43 _bootstrap_external.__file__ = __file__.replace('__init__.py', '_bootstrap_external.py')
/external/python/oauth2client/tests/
Dtest__pure_python_crypt.py32 PUBLIC_KEY_FILENAME = os.path.join(os.path.dirname(__file__),
34 PUBLIC_CERT_FILENAME = os.path.join(os.path.dirname(__file__),
36 PRIVATE_KEY_FILENAME = os.path.join(os.path.dirname(__file__),
117 PKCS1_KEY_FILENAME = os.path.join(os.path.dirname(__file__),
119 PKCS8_KEY_FILENAME = os.path.join(os.path.dirname(__file__),
121 PKCS12_KEY_FILENAME = os.path.join(os.path.dirname(__file__),
/external/pdfium/
Dupdate_pdfium.py40 COPY_FILES = [os.path.basename(__file__), ".git", "MODULE_LICENSE_BSD", "NOTICE"] + MAKE_FILES
41 REMOVE_FILES = [os.path.basename(__file__), ".git", ".gitignore"] + OWNERS_FILES
119 targetDir = os.path.dirname(os.path.realpath(__file__))
/external/tensorflow/tensorflow/tools/docs/
Dgenerate2.py105 base_dir = path.dirname(tf.__file__)
109 path.dirname(tensorboard.__file__),
110 path.dirname(tensorflow_estimator.__file__),
/external/deqp/external/openglcts/scripts/
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__), "..", "…
/external/python/google-api-python-client/samples/api-python-client-doc/
Dmain.py69 path = os.path.join(os.path.dirname(__file__), 'index.html')
81 path = os.path.join(os.path.dirname(__file__), 'gadget.html')
94 path = os.path.join(os.path.dirname(__file__), 'embed.html')

12345678910>>...60