Lines Matching refs:path
35 scriptPath = os.path.join(os.path.dirname(__file__), "..", "scripts")
36 sys.path.insert(0, scriptPath)
40 EXTERNAL_DIR = os.path.realpath(os.path.normpath(os.path.dirname(__file__)))
47 def onReadonlyRemoveError (func, path, exc_info):
48 os.chmod(path, stat.S_IWRITE)
49 os.unlink(path)
57 fullDstPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.extractDir)
59 readonlydir = os.path.join(fullDstPath, ".git")
60 if os.path.exists(readonlydir):
62 if os.path.exists(fullDstPath):
69 self.filename = os.path.basename(self.url)
88 archiveDir = os.path.join(EXTERNAL_DIR, pkg.baseDir, pkg.archiveDir)
89 if os.path.exists(archiveDir):
93 archiveFile = os.path.join(EXTERNAL_DIR, pkg.baseDir, pkg.archiveDir, pkg.filename)
94 if os.path.exists(archiveFile):
100 return os.path.join(EXTERNAL_DIR, pkg.baseDir, pkg.archiveDir, "extracted")
105 if os.path.exists(extractedChecksumFile):
137 dstPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.archiveDir, self.filename)
142 if not os.path.exists(os.path.dirname(dstPath)):
143 os.makedirs(os.path.dirname(dstPath))
150 srcPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.archiveDir, self.filename)
151 tmpPath = os.path.join(EXTERNAL_DIR, ".extract-tmp-%s" % self.baseDir)
152 dstPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.extractDir)
159 if os.path.exists(tmpPath):
168 if len(extractedEntries) != 1 or not os.path.isdir(os.path.join(tmpPath, extractedEntries[0])):
171 topLevelPath = os.path.join(tmpPath, extractedEntries[0])
173 if not os.path.exists(dstPath):
177 if os.path.exists(os.path.join(dstPath, entry)):
180 shutil.move(os.path.join(topLevelPath, entry), dstPath)
200 file = os.path.join(EXTERNAL_DIR, pkg.baseDir, pkg.extractDir, pkg.filename)
201 if os.path.exists(file):
230 dstPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.extractDir, self.filename)
235 if not os.path.exists(os.path.dirname(dstPath)):
236 os.mkdir(os.path.dirname(dstPath))
250 if not os.path.exists(os.path.join(fullDstPath, '.git')):
265 patchFile = os.path.join(EXTERNAL_DIR, self.patch)
272 fullDstPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.extractDir)
287 def postExtractLibpng (path):
288 shutil.copy(os.path.join(path, "scripts", "pnglibconf.h.prebuilt"),
289 os.path.join(path, "pnglibconf.h"))