Lines Matching refs:arcname
495 def from_file(cls, filename, arcname=None): argument
511 if arcname is None:
512 arcname = filename
513 arcname = os.path.normpath(os.path.splitdrive(arcname)[1])
514 while arcname[0] in (os.sep, os.altsep):
515 arcname = arcname[1:]
517 arcname += '/'
518 zinfo = cls(arcname, date_time)
1619 def _sanitize_windows_name(cls, arcname, pathsep): argument
1626 arcname = arcname.translate(table)
1628 arcname = (x.rstrip('.') for x in arcname.split(pathsep))
1630 arcname = pathsep.join(x for x in arcname if x)
1631 return arcname
1642 arcname = member.filename.replace('/', os.path.sep)
1645 arcname = arcname.replace(os.path.altsep, os.path.sep)
1648 arcname = os.path.splitdrive(arcname)[1]
1650 arcname = os.path.sep.join(x for x in arcname.split(os.path.sep)
1654 arcname = self._sanitize_windows_name(arcname, os.path.sep)
1656 targetpath = os.path.join(targetpath, arcname)
1698 def write(self, filename, arcname=None, argument
1710 zinfo = ZipInfo.from_file(filename, arcname)
1962 fname, arcname = self._get_codename(initname[0:-3], basename)
1964 print("Adding", arcname)
1965 self.write(fname, arcname)
1982 fname, arcname = self._get_codename(path[0:-3],
1985 print("Adding", arcname)
1986 self.write(fname, arcname)
1999 fname, arcname = self._get_codename(path[0:-3],
2002 print("Adding", arcname)
2003 self.write(fname, arcname)
2008 fname, arcname = self._get_codename(pathname[0:-3], basename)
2010 print("Adding file", arcname)
2011 self.write(fname, arcname)
2041 arcname = fname = file_pyc
2047 arcname = file_pyc
2053 arcname = file_pyc
2059 arcname = file_pyc
2069 arcname = file_pyc
2071 fname = arcname = file_py
2076 arcname = file_pyc
2078 arcname = file_pyc
2089 fname = arcname = file_py
2090 archivename = os.path.split(arcname)[1]