Home
last modified time | relevance | path

Searched refs:abspath (Results 1 – 25 of 842) sorted by relevance

12345678910>>...34

/external/e2fsprogs/util/
Dsymlinks.c121 static int shorten_path (char *path, char *abspath) in shorten_path() argument
128 while (abspath && strlen(abspath) > 1 && (p = strstr(path,"../"))) { in shorten_path()
147 a = abspath + strlen(abspath) - 1; in shorten_path()
149 if (a <= abspath) in shorten_path()
152 if (a <= abspath) in shorten_path()
168 static char lpath[PATH_MAX], new[PATH_MAX], abspath[PATH_MAX]; in fix_symlink() local
180 abspath[0] = '\0'; in fix_symlink()
182 strcat(abspath,path); in fix_symlink()
183 c = strlen(abspath); in fix_symlink()
184 if ((c > 0) && (abspath[c-1] == '/')) in fix_symlink()
[all …]
/external/python/cpython2/PC/VC6/
Dbuild_tkinter.py13 def abspath(name): function
15 return os.path.abspath(os.path.join(__file__, par, par, par, par, name))
17 TCL_DIR = abspath("tcl%d.%d.%d" % (TCL_MAJOR, TCL_MINOR, TCL_PATCH))
18 TK_DIR = abspath("tk%d.%d.%d" % (TCL_MAJOR, TCL_MINOR, TCL_PATCH))
19 TIX_DIR = abspath("tix%d.%d.%d" % (TIX_MAJOR, TIX_MINOR, TIX_PATCH))
20 OUT_DIR = abspath("tcltk")
/external/python/cpython2/Tools/scripts/
Dpatchcheck.py108 abspath = os.path.join(SRCDIR, path)
109 with open(abspath, 'r') as f:
112 untabify.process(abspath, 8, verbose=False)
123 abspath = os.path.join(SRCDIR, path)
125 with open(abspath, 'rb') as f:
129 shutil.copyfile(abspath, abspath + '.bak')
130 with open(abspath, 'wb') as f:
/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py2 from os.path import abspath
81 top_level = os.path.abspath('/foo')
127 top_level = os.path.abspath('/foo')
295 self.addCleanup(sys.path.remove, abspath('/foo'))
308 vfs = {abspath('/foo'): ['my_package'],
309 abspath('/foo/my_package'): ['__init__.py', 'test_module.py']}
346 loader._top_level_dir = abspath('/foo')
349 suite = list(loader._find_tests(abspath('/foo'), 'test*.py'))
382 full_path = os.path.abspath(os.path.normpath('/foo'))
405 top_level_dir = os.path.abspath('/foo/bar')
[all …]
/external/python/cpython3/Tools/scripts/
Dpatchcheck.py104 abspath = os.path.join(SRCDIR, path)
105 with open(abspath, 'r') as f:
108 untabify.process(abspath, 8, verbose=False)
119 abspath = os.path.join(SRCDIR, path)
121 with open(abspath, 'rb') as f:
125 shutil.copyfile(abspath, abspath + '.bak')
126 with open(abspath, 'wb') as f:
/external/python/cpython3/Lib/test/
Dtest_dtrace.py12 def abspath(filename): function
13 return os.path.abspath(findfile(filename, subdir="dtracedata"))
48 script_file=abspath(name + self.EXTENSION),
49 python_file=abspath(name + ".py"),
52 with open(abspath(name + self.EXTENSION + ".expected")) as f:
80 output = self.trace(abspath("assert_usable" + self.EXTENSION))
125 with open(abspath("call_stack.py")) as f:
Dregrtest.py29 mydir = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
32 if os.path.abspath(os.path.normpath(sys.path[i])) == mydir:
41 __file__ = os.path.abspath(__file__)
44 assert __file__ == os.path.abspath(sys.argv[0])
Dtest_unicode_file.py33 self.assertTrue(os.path.exists(os.path.abspath(filename)))
34 self.assertTrue(os.path.isfile(os.path.abspath(filename)))
35 self.assertTrue(os.access(os.path.abspath(filename), os.R_OK))
43 os.path.abspath(filename)==os.path.abspath(glob.glob(filename)[0]))
45 path, base = os.path.split(os.path.abspath(filename))
/external/ltp/include/mk/
Dfunctions.mk29 MAKE_3_80_abspath = $(shell $(top_srcdir)/scripts/abspath.sh '$(subst $(SQUOTE),\\$(SQUOTE),$(1))')
62 INSTALL_FILES += $$(abspath $$(DESTDIR)/$(3)/$(1))
64 $$(abspath $$(DESTDIR)/$(3)/$(1)): \
65 $$(abspath $$(dir $$(DESTDIR)/$(3)/$(1)))
/external/mesa3d/src/compiler/
DSConscript17 env.Prepend(CPPPATH = [Dir('.').abspath, Dir('glsl').abspath])
18 env.Prepend(CPPPATH = [Dir('.').abspath, Dir('nir').abspath])
DSConscript.nir22 env.Prepend(CPPPATH = [Dir('.').abspath, Dir('glsl').abspath])
23 env.Prepend(CPPPATH = [Dir('.').abspath, Dir('nir').abspath])
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/support/
Drun_bindings_generator.py11 out_dir = os.path.abspath(out_dir)
12 root_dir = os.path.abspath(root_dir)
13 mojom_file = os.path.abspath(mojom_file)
22 this_dir = os.path.dirname(os.path.abspath(__file__))
/external/python/cpython3/Lib/distutils/
Ddir_util.py44 if _path_created.get(os.path.abspath(name)):
60 abs_head = os.path.abspath(head)
196 abspath = os.path.abspath(cmd[1])
197 if abspath in _path_created:
198 del _path_created[abspath]
/external/python/cpython2/Lib/distutils/
Ddir_util.py46 if _path_created.get(os.path.abspath(name)):
62 abs_head = os.path.abspath(head)
200 abspath = os.path.abspath(cmd[1])
201 if abspath in _path_created:
202 del _path_created[abspath]
/external/chromium-trace/catapult/common/node_runner/node_runner/
Dnode_util.py16 os.path.dirname(os.path.abspath(__file__)), 'node_binaries.json'))
35 old_dir = os.path.abspath(os.curdir)
36 os.chdir(os.path.join(os.path.abspath(
55 path = os.path.abspath(os.path.join(os.path.dirname(__file__),
/external/ltp/testscripts/build/
Dtest_install_out_of_build_tree.sh35 clean_is_sane "$srcdir" "$srcdir" "$("$abspath" "$tmp_destdir/$tmp_prefix")"
44 test_ltp "$("$abspath" "$tmp_destdir/$tmp_prefix")"
48 clean_is_sane "$srcdir" "$srcdir" "$("$abspath" "$tmp_destdir/$tmp_prefix")"
Dtest_out_of_build_tree.sh36 clean_is_sane "$srcdir" "$tmp_builddir" "$("$abspath" "$tmp_destdir/$tmp_prefix")"
45 test_ltp "$("$abspath" "$tmp_destdir/$tmp_prefix")"
50 clean_is_sane "$srcdir" "$tmp_builddir" "$("$abspath" "$tmp_destdir/$tmp_prefix")"
/external/ltp/testcases/kernel/syscalls/readlinkat/
Dreadlinkat01.c52 static char abspath[1024]; variable
62 {&dir_fd, abspath, TEST_FILE, sizeof(TEST_FILE)-1, 0},
124 snprintf(abspath, sizeof(abspath), "%s/" TEST_SYMLINK, tmpdir); in setup()
/external/chromium-trace/catapult/systrace/systrace/
Doutput_generator.py66 return os.path.abspath(output_file_name)
68 systrace_dir = os.path.abspath(os.path.dirname(__file__))
81 systrace_dir = os.path.abspath(os.path.dirname(__file__))
107 final_path = os.path.abspath(output_file_name)
136 final_path = os.path.abspath(output_file_name)
/external/autotest/tko/
Ddelete_job_results3 thisdir = os.path.dirname(os.path.abspath(sys.argv[0]))
4 sys.path.insert(0, os.path.abspath(os.path.join(thisdir, '../tko')))
13 resultsdir = os.path.abspath(os.path.join(thisdir, '../results', tag))
/external/chromium-trace/catapult/devil/bin/
Drun_py_devicetests9 _CATAPULT_PATH = os.path.abspath(os.path.join(
11 _DEVIL_PATH = os.path.abspath(os.path.join(
13 _TYP_PATH = os.path.abspath(os.path.join(_CATAPULT_PATH, 'third_party', 'typ'))
/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py59 top_level = os.path.abspath('/foo')
150 full_path = os.path.abspath(os.path.normpath('/foo'))
173 top_level_dir = os.path.abspath('/foo/bar')
174 start_dir = os.path.abspath('/foo/bar/baz')
322 full_path = os.path.abspath('foo')
351 mod_dir = os.path.abspath('bar')
352 expected_dir = os.path.abspath('foo')
366 mod_dir = os.path.abspath('bar')
367 expected_dir = os.path.abspath('foo')
385 expectedPath = os.path.abspath(os.path.dirname(unittest.test.__file__))
/external/mesa3d/scons/
Dcustom.py109 source_dir = node.get_dir().abspath
110 GLAPI = env.Dir('#src/mapi/glapi/gen').abspath
114 finder.run_script(node.abspath)
244 cur_srcdir = env.Dir('.').srcnode().abspath
245 top_srcdir = env.Dir('#').abspath
257 sym_table = parser.parse(src.abspath)
/external/python/cpython2/Lib/test/
Dtest_unicode_file.py48 self.assertTrue(os.path.exists(os.path.abspath(filename)))
49 self.assertTrue(os.path.isfile(os.path.abspath(filename)))
50 self.assertTrue(os.access(os.path.abspath(filename), os.R_OK))
58 os.path.abspath(filename)==os.path.abspath(glob.glob(filename)[0]))
60 path, base = os.path.split(os.path.abspath(filename))
/external/v8/gypfiles/
Dgyp_environment.py16 V8_ROOT = os.path.abspath(os.path.join(SCRIPT_DIR, os.pardir))
29 e.filename = os.path.abspath(file_path)
42 var, os.path.abspath(file_path)

12345678910>>...34