Lines Matching full:pathname
1042 # build the destination pathname, replacing
1048 # interpret absolute pathname as relative, remove drive letter or
1356 def writepy(self, pathname, basename = ""):
1357 """Add all files from "pathname" to the ZIP archive.
1359 If pathname is a package directory, search the directory and
1361 the modules into the archive. If pathname is a plain
1362 directory, listdir *.py and enter all modules. Else, pathname
1368 dir, name = os.path.split(pathname)
1369 if os.path.isdir(pathname):
1370 initname = os.path.join(pathname, "__init__.py")
1378 print "Adding package in", pathname, "as", basename
1383 dirlist = os.listdir(pathname)
1387 path = os.path.join(pathname, filename)
1402 print "Adding files from directory", pathname
1403 for filename in os.listdir(pathname):
1404 path = os.path.join(pathname, filename)
1413 if pathname[-3:] != ".py":
1416 fname, arcname = self._get_codename(pathname[0:-3], basename)
1421 def _get_codename(self, pathname, basename):
1428 file_py = pathname + ".py"
1429 file_pyc = pathname + ".pyc"
1430 file_pyo = pathname + ".pyo"