Fix a few more Windows issues.

This commit is contained in:
grossmj
2014-03-30 22:14:53 -06:00
parent 74b8dfc447
commit 09240461ab
2 changed files with 9 additions and 6 deletions

View File

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

View File

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