pathName her zaman olmak zorunda değil. -- baris

This commit is contained in:
S.Çağlar Onur
2005-06-24 18:18:01 +00:00
parent e7fb3c923b
commit eaeb075bbc
+2 -1
View File
@@ -85,7 +85,8 @@ class ArchiveZip(ArchiveBase):
cwd = os.getcwd()
pathName = os.path.dirname(fileName)
fileName = os.path.basename(fileName)
os.chdir(pathName)
if pathName:
os.chdir(pathName)
self.add_file(fileName)
os.chdir(cwd)