Home
last modified time | relevance | path

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

12345678910>>...34

/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/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.py282 filename = warning_tests.__file__
284 del warning_tests.__file__
291 warning_tests.__file__ = filename
297 filename = warning_tests.__file__
300 del warning_tests.__file__
308 warning_tests.__file__ = filename
314 filename = warning_tests.__file__
318 del warning_tests.__file__
327 warning_tests.__file__ = filename
335 file_name = warning_tests.__file__
[all …]
Dtest_startfile.py27 empty = path.join(path.dirname(__file__), "empty.vbs")
36 empty = path.join(path.dirname(__file__), "empty.vbs")
/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/autotest/site_utils/
Dtest_droid.py30 os.path.dirname(os.path.dirname(os.path.realpath(__file__))),
34 sys.exit(os.execv(__file__, sys.argv))
111 os.path.realpath(__file__)))
113 realpath = os.path.realpath(__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/v8/testing/gmock/scripts/generator/
Dgmock_gen.py26 sys.path.append(os.path.dirname(__file__))
30 gmock_class.__doc__ = gmock_class.__doc__.replace('gmock_class.py', __file__)
/external/googletest/googlemock/scripts/generator/
Dgmock_gen.py26 sys.path.append(os.path.dirname(__file__))
30 gmock_class.__doc__ = gmock_class.__doc__.replace('gmock_class.py', __file__)
/external/google-breakpad/src/testing/scripts/generator/
Dgmock_gen.py26 sys.path.append(os.path.dirname(__file__))
30 gmock_class.__doc__ = gmock_class.__doc__.replace('gmock_class.py', __file__)
/external/autotest/frontend/client/
Dgwt_dir10 os.path.dirname(__file__), '..', '..', 'site-packages', 'gwt'))
17 sys.stderr.write('(%s): GWT not installed?\n' % __file__)
/external/chromium-trace/catapult/systrace/systrace/
Dupdate_systrace_trace_viewer.py15 os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir))
22 os.path.abspath(os.path.dirname(__file__)),
50 cwd=os.path.dirname(os.path.abspath(__file__))).strip()
/external/chromium-trace/catapult/common/battor/bin/
Drun_py_tests10 os.path.dirname(__file__), '..', '..', '..'))
12 os.path.dirname(__file__), '..'))
/external/chromium-trace/catapult/devil/bin/
Drun_py_tests10 os.path.dirname(__file__), '..', '..'))
12 os.path.dirname(__file__), '..'))
Drun_py_devicetests10 os.path.dirname(__file__), '..', '..'))
12 os.path.dirname(__file__), '..'))
/external/libmojo/third_party/catapult/devil/bin/
Drun_py_tests10 os.path.dirname(__file__), '..', '..'))
12 os.path.dirname(__file__), '..'))
/external/llvm/bindings/python/llvm/tests/
Dbase.py35 return os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_file")
38 return os.path.join(os.path.dirname(os.path.abspath(__file__)), "test.bc")
/external/python/cpython2/Lib/distutils/tests/
Dtest_dep_util.py17 old_file = os.path.abspath(__file__)
40 three = os.path.abspath(__file__) # I am the old file
56 old_file = os.path.abspath(__file__)
/external/python/cpython2/Lib/lib2to3/
Dpygram.py15 _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
16 _PATTERN_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__),
/external/autotest/server/
Dcrashcollect.py132 __file__, "autotest_lib.server.site_crashcollect", "get_site_crashdumps",
135 __file__, "autotest_lib.server.site_crashcollect", "get_site_crashinfo",
138 __file__, "autotest_lib.server.site_crashcollect", "report_crashdumps",
141 __file__, "autotest_lib.server.site_crashcollect", "fetch_orphaned_crashdumps",
144 __file__, "autotest_lib.server.site_crashcollect", "get_host_infodir",
/external/chromium-trace/catapult/common/eslint/bin/
Drun_tests11 os.path.join(os.path.dirname(__file__),
16 os.path.join(os.path.dirname(__file__), os.path.pardir))
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/
Dgen_archrast.py171 curdir = os.path.dirname(os.path.abspath(__file__))
181 curdir = os.path.dirname(os.path.abspath(__file__))
191 curdir = os.path.dirname(os.path.abspath(__file__))
202 curdir = os.path.dirname(os.path.abspath(__file__))
/external/autotest/client/
Dsetup_modules.py6 dirname = os.path.dirname(sys.modules[__name__].__file__)
94 logging_py = os.path.join(os.path.dirname(__file__), "common_lib",
123 os.path.exists(os.path.join(os.path.dirname(__file__),
/external/v8/tools/clang/plugins/tests/
Dtest.py11 script_dir = os.path.dirname(os.path.realpath(__file__))
44 os.path.dirname(os.path.realpath(__file__)),

12345678910>>...34