mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 09:55:54 +08:00
Reset APPRUN_RUNTIME environment variable before calling plugin
CURA-12091
This commit is contained in:
parent
5bb265a298
commit
40400b2be2
@ -94,8 +94,13 @@ class BackendPlugin(AdditionalSettingDefinitionsAppender, PluginObject):
|
||||
if Platform.isWindows():
|
||||
popen_kwargs["creationflags"] = subprocess.CREATE_NO_WINDOW
|
||||
|
||||
Logger.info(os.environ)
|
||||
self._process = subprocess.Popen(self._validatePluginCommand(), **popen_kwargs)
|
||||
plugin_env = os.environ
|
||||
if "APPRUN_RUNTIME" in plugin_env and "APPRUN_ORIGINAL_APPRUN_RUNTIME" in plugin_env:
|
||||
plugin_env["APPRUN_RUNTIME"] = plugin_env["APPRUN_ORIGINAL_APPRUN_RUNTIME"]
|
||||
|
||||
Logger.info(plugin_env)
|
||||
|
||||
self._process = subprocess.Popen(self._validatePluginCommand(), env=plugin_env, **popen_kwargs)
|
||||
self._is_running = True
|
||||
return True
|
||||
except PermissionError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user