mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 20:00:02 +00:00
Fix #2163 bug where launching viewing apps could freeze Blender
This commit is contained in:
@@ -53,7 +53,7 @@ def open_with_user_command(user_command, path):
|
|||||||
if user_command:
|
if user_command:
|
||||||
commands = eval(user_command)
|
commands = eval(user_command)
|
||||||
for command in commands:
|
for command in commands:
|
||||||
subprocess.run(command)
|
subprocess.Popen(command)
|
||||||
else:
|
else:
|
||||||
webbrowser.open("file://" + path)
|
webbrowser.open("file://" + path)
|
||||||
|
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
if user_command:
|
if user_command:
|
||||||
commands = eval(user_command)
|
commands = eval(user_command)
|
||||||
for command in commands:
|
for command in commands:
|
||||||
subprocess.run(command)
|
subprocess.Popen(command)
|
||||||
else:
|
else:
|
||||||
webbrowser.open("file://" + path)
|
webbrowser.open("file://" + path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user