Tools: small fix in update script

This commit is contained in:
Yorik van Havre
2019-05-10 19:18:52 -03:00
parent c65bf365a1
commit 19d38abce6

View File

@@ -234,12 +234,12 @@ if __name__ == "__main__":
elif inputzip:
tempfolder = tempfile.mkdtemp()
print("creating temp folder " + tempfolder)
os.chdir(tempfolder)
inputzip=os.path.realpath(inputzip)
if not os.path.exists(inputzip):
print("ERROR: " + inputzip + " not found")
sys.exit()
shutil.copy(inputzip,tempfolder)
os.chdir(tempfolder)
zfile=zipfile.ZipFile("freecad.zip")
print("extracting freecad.zip...")
zfile.extractall()