From 03b339f266e03345696c8cd5bf06a2caee0aa181 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 9 Jul 2019 16:52:23 +0200 Subject: [PATCH] Add files via upload --- src/updater.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/updater.py b/src/updater.py index fc18ab0..90a413c 100644 --- a/src/updater.py +++ b/src/updater.py @@ -99,7 +99,7 @@ def batch(): getTheVersions = downloader.newdownload(credentials, urlparsed[0], globs.CNIRVerStock).download() logfile.printdbg('Parsing the software versions') - with open(globs.CNIRFolder + '\\versions.lst') as versionsFile: + with open(globs.CNIRVerStock) as versionsFile: versionsTab = versionsFile.read().split("\n")[1].split("||") logfile.printdbg('Versions retrieved : {}'.format(versionsTab)) # Choose the newer @@ -124,6 +124,8 @@ def batch(): getTheUpdate = downloader.newdownload(credentials, finalurl, globs.CNIRFolder + '\\..\\CNIPackage.zip').download() + # And now unzip and launch + return True ## Main Function