Fix #32388: bpy.ops.wm.path_open() not working with path with spaces on Windows.

This commit is contained in:
2012-08-23 11:18:31 +00:00
parent efa97ea40f
commit 32a05baad9

View File

@@ -790,7 +790,7 @@ class WM_OT_path_open(Operator):
return {'CANCELLED'}
if sys.platform[:3] == "win":
subprocess.Popen(["start", filepath], shell=True)
os.startfile(filepath)
elif sys.platform == "darwin":
subprocess.Popen(["open", filepath])
else: