diff --git a/inkex/command.py b/inkex/command.py index 903da5b7b1f4148a63744ca07a354cf7380dd570..f1fe260719a46cd0154152397d396c235bbad3ea 100644 --- a/inkex/command.py +++ b/inkex/command.py @@ -172,12 +172,18 @@ def _call(program, *args, **kwargs): inpipe = PIPE if stdin else None args = to_args(which(program), *args, **kwargs) + + kwargs = {} + if sys.platform == "win32": + kwargs["creationflags"] = 0x08000000 # create no console window + process = Popen( args, shell=False, # Never have shell=True stdin=inpipe, # StdIn not used (yet) stdout=PIPE, # Grab any output (return it) stderr=PIPE, # Take all errors, just incase + **kwargs ) (stdout, stderr) = process.communicate(input=stdin) if process.returncode == 0: