Add files via upload

This commit is contained in:
Adrien Bourmault 2019-07-09 16:52:23 +02:00 committed by GitHub
parent 730fcb6488
commit 03b339f266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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