[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50155] trunk/blender/release/scripts/ startup/bl_operators/wm.py: Fix #32388: bpy.ops.wm.path_open() not working with path with spaces on Windows.

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Aug 23 13:18:32 CEST 2012


Revision: 50155
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50155
Author:   blendix
Date:     2012-08-23 11:18:31 +0000 (Thu, 23 Aug 2012)
Log Message:
-----------
Fix #32388: bpy.ops.wm.path_open() not working with path with spaces on Windows.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_operators/wm.py

Modified: trunk/blender/release/scripts/startup/bl_operators/wm.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/wm.py	2012-08-23 10:56:16 UTC (rev 50154)
+++ trunk/blender/release/scripts/startup/bl_operators/wm.py	2012-08-23 11:18:31 UTC (rev 50155)
@@ -790,7 +790,7 @@
             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:




More information about the Bf-blender-cvs mailing list