/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/ |
D | ntpath.py | 67 path = a 70 if path == "": 82 if path[1:2] != ":" or b[1:2] == ":": 87 elif len(path) > 3 or (len(path) == 3 and 88 path[-1] not in "/\\"): 93 path = b 96 assert len(path) > 0 97 if path[-1] in "/\\": 99 path += b[1:] 101 path += b [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | ntpath.py | 67 path = a 70 if path == "": 82 if path[1:2] != ":" or b[1:2] == ":": 87 elif len(path) > 3 or (len(path) == 3 and 88 path[-1] not in "/\\"): 93 path = b 96 assert len(path) > 0 97 if path[-1] in "/\\": 99 path += b[1:] 101 path += b [all …]
|
D | posixpath.py | 64 path = a 67 path = b 68 elif path == '' or path.endswith('/'): 69 path += b 71 path += '/' + b 72 return path 130 def islink(path): argument 133 st = os.lstat(path) 140 def lexists(path): argument 143 os.lstat(path) [all …]
|
D | SimpleHTTPServer.py | 66 path = self.translate_path(self.path) 68 if os.path.isdir(path): 69 if not self.path.endswith('/'): 72 self.send_header("Location", self.path + "/") 76 index = os.path.join(path, index) 77 if os.path.exists(index): 78 path = index 81 return self.list_directory(path) 82 ctype = self.guess_type(path) 87 f = open(path, 'rb') [all …]
|
D | pkgutil.py | 9 import os.path 71 def walk_packages(path=None, prefix='', onerror=None): argument 105 for importer, name, ispkg in iter_modules(path, prefix): 120 path = getattr(sys.modules[name], '__path__', None) or [] 123 path = [p for p in path if not seen(p)] 125 for item in walk_packages(path, name+'.', onerror): 129 def iter_modules(path=None, prefix=''): argument 140 if path is None: 143 importers = map(get_importer, path) 173 def __init__(self, path=None): argument [all …]
|
D | shutil.py | 10 from os.path import abspath 55 if hasattr(os.path, 'samefile'): 57 return os.path.samefile(src, dst) 62 return (os.path.normcase(os.path.abspath(src)) == 63 os.path.normcase(os.path.abspath(dst))) 114 if os.path.isdir(dst): 115 dst = os.path.join(dst, os.path.basename(src)) 125 if os.path.isdir(dst): 126 dst = os.path.join(dst, os.path.basename(src)) 135 def _ignore_patterns(path, names): argument [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Core/ |
D | FileHook.py | 42 def __init__(self, action, path, mode=-1): argument 44 self.path = path 51 self.workspace = os.path.normpath(workspace) 53 self.zipfile = os.path.join(self.workspace, gBACKUPFILE) 60 def _save(self, tmp, path): argument 61 if not self._tryhook(path): 63 self.rlist.append(_PathInfo(tmp, path)) 65 def bkrmfile(self, path): argument 66 arc = self._tryhook(path) 67 if arc and os.path.isfile(path): [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
D | LongFilePathOsPath.py | 17 def isfile(path): argument 18 return os.path.isfile(LongFilePath(path)) 20 def isdir(path): argument 21 return os.path.isdir(LongFilePath(path)) 23 def exists(path): argument 24 return os.path.exists(LongFilePath(path)) 27 return os.path.getsize(LongFilePath(filename)) 30 return os.path.getmtime(LongFilePath(filename)) 33 return os.path.getatime(LongFilePath(filename)) 36 return os.path.getctime(LongFilePath(filename)) [all …]
|
D | LongFilePathOs.py | 19 path = LongFilePathOsPath variable 21 def access(path, mode): argument 22 return os.access(LongFilePath(path), mode) 24 def remove(path): argument 25 return os.remove(LongFilePath(path)) 30 def rmdir(path): argument 31 return os.rmdir(LongFilePath(path)) 33 def mkdir(path): argument 34 return os.mkdir(LongFilePath(path)) 42 def chdir(path): argument [all …]
|
D | MultipleWorkspace.py | 43 if str(os.path.normcase (Path)).startswith(Ws): 44 return os.path.join(Ws, os.path.relpath(Path, Ws)) 59 …cls.PACKAGES_PATH = [cls.convertPackagePath (Ws, os.path.normpath(Path.strip())) for Path in Packa… 74 Path = os.path.join(Ws, *p) 75 if not os.path.exists(Path): 77 Path = os.path.join(Pkg, *p) 78 if os.path.exists(Path): 80 Path = os.path.join(Ws, *p) 96 Path = os.path.relpath(Path, Pkg) 99 Path = os.path.relpath(Path, Ws) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Lib/ |
D | ntpath.py | 76 def join(path, *paths): argument 78 result_drive, result_path = splitdrive(path) 238 def islink(path): argument 250 def ismount(path): argument 252 unc, rest = splitunc(path) 255 p = splitdrive(path)[1] 303 def expanduser(path): argument 307 if path[:1] != '~': 308 return path 309 i, n = 1, len(path) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | SimpleHTTPServer.py | 69 path = self.translate_path(self.path) 71 if os.path.isdir(path): 72 parts = urlparse.urlsplit(self.path) 73 if not parts.path.endswith('/'): 83 index = os.path.join(path, index) 84 if os.path.exists(index): 85 path = index 88 return self.list_directory(path) 89 ctype = self.guess_type(path) 94 f = open(path, 'rb') [all …]
|
D | shutil.py | 10 from os.path import abspath 56 if hasattr(os.path, 'samefile'): 58 return os.path.samefile(src, dst) 63 return (os.path.normcase(os.path.abspath(src)) == 64 os.path.normcase(os.path.abspath(dst))) 117 if os.path.isdir(dst): 118 dst = os.path.join(dst, os.path.basename(src)) 128 if os.path.isdir(dst): 129 dst = os.path.join(dst, os.path.basename(src)) 138 def _ignore_patterns(path, names): argument [all …]
|
D | pkgutil.py | 9 import os.path 71 def walk_packages(path=None, prefix='', onerror=None): argument 105 for importer, name, ispkg in iter_modules(path, prefix): 120 path = getattr(sys.modules[name], '__path__', None) or [] 123 path = [p for p in path if not seen(p)] 125 for item in walk_packages(path, name+'.', onerror): 129 def iter_modules(path=None, prefix=''): argument 140 if path is None: 143 importers = map(get_importer, path) 173 def __init__(self, path=None): argument [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/ |
D | test_discovery.py | 31 original_isfile = os.path.isfile 33 os.path.isfile = original_isfile 34 original_isdir = os.path.isdir 36 os.path.isdir = original_isdir 41 os.listdir = lambda path: path_lists.pop(0) 44 def isdir(path): argument 45 return path.endswith('dir') 46 os.path.isdir = isdir 49 def isfile(path): argument 51 return not path.endswith('dir') and not 'another_dir' in path [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/webchecker/ |
D | websucker.py | 56 path = self.savefilename(url) 58 f = open(path, "rb") 66 path = self.savefilename(url) 69 self.savefile(text, path) 78 def savefile(self, text, path): argument 79 dir, base = os.path.split(path) 82 f = open(path, "wb") 85 self.message("saved %s", path) 87 self.message("didn't save %s: %s", path, str(msg)) 91 host, path = urllib.splithost(rest) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ |
D | dir_util.py | 42 name = os.path.normpath(name) 44 if os.path.isdir(name) or name == '': 46 if _path_created.get(os.path.abspath(name)): 49 (head, tail) = os.path.split(name) 52 while head and tail and not os.path.isdir(head): 53 (head, tail) = os.path.split(head) 61 head = os.path.join(head, d) 62 abs_head = os.path.abspath(head) 74 if not (exc.errno == errno.EEXIST and os.path.isdir(head)): 95 need_dir[os.path.join(base_dir, os.path.dirname(file))] = 1 [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Tests/ |
D | TestTools.py | 20 import os.path 28 TestsDir = os.path.realpath(os.path.split(sys.argv[0])[0]) 29 BaseToolsDir = os.path.realpath(os.path.join(TestsDir, '..')) 30 CSourceDir = os.path.join(BaseToolsDir, 'Source', 'C') 31 PythonSourceDir = os.path.join(BaseToolsDir, 'Source', 'Python') 32 TestTempDir = os.path.join(TestsDir, 'TestTempDir') 34 if PythonSourceDir not in sys.path: 39 sys.path.append(PythonSourceDir) 53 return [ os.path.join(BaseToolsDir, 'Bin', sys.platform.title()) ] 59 os.path.join(BaseToolsDir, 'Bin', uname), [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/ |
D | test_install_data.py | 19 cmd.install_dir = inst = os.path.join(pkg_dir, 'inst') 24 one = os.path.join(pkg_dir, 'one') 26 inst2 = os.path.join(pkg_dir, 'inst2') 27 two = os.path.join(pkg_dir, 'two') 39 rtwo = os.path.split(two)[-1] 40 self.assertTrue(os.path.exists(os.path.join(inst2, rtwo))) 41 rone = os.path.split(one)[-1] 42 self.assertTrue(os.path.exists(os.path.join(inst, rone))) 52 self.assertTrue(os.path.exists(os.path.join(inst2, rtwo))) 53 self.assertTrue(os.path.exists(os.path.join(inst, rone))) [all …]
|
D | test_build_ext.py | 24 return os.path.join(sysconfig.project_base, 'Modules', 'xxmodule.c') 25 return os.path.join(srcdir, 'Modules', 'xxmodule.c') 37 if os.path.exists(_XX_MODULE_PATH): 38 self.sys_path = sys.path[:] 39 sys.path.append(self.tmp_dir) 44 if os.path.exists(_XX_MODULE_PATH): 46 sys.path[:] = self.sys_path 72 @unittest.skipIf(not os.path.exists(_XX_MODULE_PATH), 76 xx_c = os.path.join(self.tmp_dir, 'xxmodule.c') 268 c_file = os.path.join(tmp_dir, 'foo.c') [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/ |
D | loader.py | 172 top_level_dir = os.path.abspath(top_level_dir) 174 if not top_level_dir in sys.path: 179 sys.path.insert(0, top_level_dir) 183 if os.path.isdir(os.path.abspath(start_dir)): 184 start_dir = os.path.abspath(start_dir) 186 is_not_importable = not os.path.isfile(os.path.join(start_dir, '__init__.py')) 196 start_dir = os.path.abspath(os.path.dirname((the_module.__file__))) 199 sys.path.remove(top_level_dir) 209 full_path = os.path.abspath(module.__file__) 211 if os.path.basename(full_path).lower().startswith('__init__.py'): [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_shutil.py | 9 import os.path 10 from os.path import splitdrive 53 def write_file(self, path, content='xxx'): argument 59 if isinstance(path, (list, tuple)): 60 path = os.path.join(*path) 61 f = open(path, 'w') 87 self.childpath = os.path.join(TESTFN, 'a') 136 handle, path = tempfile.mkstemp() 138 self.assertRaises(OSError, shutil.rmtree, path) 139 os.remove(path) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
D | patchcheck.py | 4 import os.path 38 if os.path.isdir('.hg'): 41 elif os.path.isdir('.svn'): 55 return set(path for path in output if os.path.isfile(path)) 66 for path in file_paths: 67 lines.append(" {}".format(path)) 76 for path in (x for x in file_paths if x.endswith('.py')): 77 if reindent.check(path): 78 fixed.append(path) 86 for path in file_paths: [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/ |
D | freeze.py | 117 path = sys.path[:] 218 ishome = os.path.exists(os.path.join(prefix, 'Python', 'ceval.c')) 227 incldir = os.path.join(prefix, 'Include') 229 config_c_in = os.path.join(prefix, 'Modules', 'config.c.in') 230 frozenmain_c = os.path.join(prefix, 'Python', 'frozenmain.c') 231 makefile_in = os.path.join(exec_prefix, 'Makefile') 233 frozendllmain_c = os.path.join(exec_prefix, 'Pc\\frozen_dllmain.c') 235 binlib = os.path.join(exec_prefix, 237 incldir = os.path.join(prefix, 'include', 'python%s' % version) 238 config_h_dir = os.path.join(exec_prefix, 'include', [all …]
|
/device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/ |
D | dirname.c | 54 dirname(char *path) in __weak_alias() 65 if ((path == NULL) || (*path == '\0')) in __weak_alias() 69 lastp = path + strlen(path) - 1; in __weak_alias() 70 while (lastp != path && isDirSep(*lastp)) in __weak_alias() 77 while (lastp != path && isDirSep(*lastp)) in __weak_alias() 84 len = (lastp - path) + 1 /* last char */; in __weak_alias() 88 memcpy(result, path, len); in __weak_alias() 100 } while (--lastp >= path); in __weak_alias()
|