mirror of
https://github.com/GNS3/gns3-gui.git
synced 2026-05-17 00:46:01 +03:00
Fix a few more Windows issues.
This commit is contained in:
@@ -257,7 +257,8 @@ class IOU(Module):
|
||||
if server.isLocal():
|
||||
params.update({"working_dir": self._working_dir})
|
||||
else:
|
||||
del params["iouyap"] # do not send iouyap path to remote servers
|
||||
if "iouyap" in params:
|
||||
del params["iouyap"] # do not send iouyap path to remote servers
|
||||
project_name = os.path.basename(self._working_dir)
|
||||
if project_name.endswith("-files"):
|
||||
project_name = project_name[:-6]
|
||||
@@ -284,7 +285,8 @@ class IOU(Module):
|
||||
if server.isLocal():
|
||||
params.update({"working_dir": self._working_dir})
|
||||
else:
|
||||
del params["iouyap"] # do not send iouyap path to remote servers
|
||||
if "iouyap" in params:
|
||||
del params["iouyap"] # do not send iouyap path to remote servers
|
||||
project_name = os.path.basename(self._working_dir)
|
||||
if project_name.endswith("-files"):
|
||||
project_name = project_name[:-6]
|
||||
|
||||
@@ -92,10 +92,11 @@ class ProcessFilesThread(QtCore.QThread):
|
||||
else:
|
||||
shutil.copy2(source_file, destination_file)
|
||||
except EnvironmentError as e:
|
||||
if self._move:
|
||||
self.error.emit("Could not move file to {}: {}".format(destination_file, str(e)))
|
||||
else:
|
||||
self.error.emit("Could not copy file to {}: {}".format(destination_file, str(e)))
|
||||
pass # FIXME
|
||||
# if self._move:
|
||||
# self.error.emit("Could not move file to {}: {}".format(destination_file, str(e)))
|
||||
# else:
|
||||
# self.error.emit("Could not copy file to {}: {}".format(destination_file, str(e)))
|
||||
return
|
||||
copied += 1
|
||||
# update the progress made
|
||||
|
||||
Reference in New Issue
Block a user