Fixed the archiver using the wrong root folder.

This commit is contained in:
Oliver Hamlet
2014-11-01 16:50:22 +00:00
parent fffe084129
commit 546be6f8c4
+1 -1
View File
@@ -93,7 +93,7 @@ def getNameSuffix():
def createArchive(folder_path, archive_path):
sevenzip_path = os.path.join('C:\\', 'Program Files', '7-Zip', '7z.exe')
if os.path.exists(sevenzip_path):
args = [sevenzip_path, 'a', '-r', archive_path, folder_path]
args = [sevenzip_path, 'a', '-r', archive_path, os.path.join(folder_path, '*')]
subprocess.call(args)
else:
zip = zipfile.ZipFile( archive_path, 'w', zipfile.ZIP_DEFLATED )