From 546be6f8c4aa9ad6bb143ec736724aef42aafaf7 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 1 Nov 2014 16:50:22 +0000 Subject: [PATCH] Fixed the archiver using the wrong root folder. --- src/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/archive.py b/src/archive.py index 83fcad9f..86d4ad00 100644 --- a/src/archive.py +++ b/src/archive.py @@ -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 )