pathName her zaman olmak zorunda değil. -- baris
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user