diff --git a/src/Tools/updatefromcrowdin.py b/src/Tools/updatefromcrowdin.py index 02c75ba80b..d74246935e 100755 --- a/src/Tools/updatefromcrowdin.py +++ b/src/Tools/updatefromcrowdin.py @@ -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()