Skip to content

Commit

Permalink
Don't open subprocess as shell
Browse files Browse the repository at this point in the history
That doesn't work when working as an unpacked plug-in in Cura.
  • Loading branch information
Ghostkeeper committed Sep 13, 2017
1 parent 6a00b2f commit d5dd7cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions X3GWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def write(self, stream, nodes, mode = MeshWriter.OutputMode.TextMode):
Logger.log("d", "Command: %s", str(command))
stream.close() #Close the file so that the binary can write to it.
try:
process = subprocess.Popen(safes, shell=True)
process = subprocess.Popen(safes)
process.wait()
output = process.communicate(b"y")
Logger.log("d", str(output))
Expand All @@ -86,4 +86,4 @@ def _removeTemporary(temp_file):
try:
os.remove(temp_file)
except:
Logger.log("w", "Couldn't remove temporary file %s", temp_file)
Logger.log("w", "Couldn't remove temporary file %s", temp_file)

0 comments on commit d5dd7cd

Please sign in to comment.