when checking for windows check sys.platform starts with "win" rather then '== "win32...
[blender.git] / release / scripts / op / wm.py
index 505fa3478786fce72db7ce7265feed87068a7d7e..a90b691afb752ffc82a9a7091b73b9175b3f4aa8 100644 (file)
@@ -575,7 +575,7 @@ class WM_OT_path_open(bpy.types.Operator):
             self.report({'ERROR'}, "File '%s' not found" % filepath)
             return {'CANCELLED'}
 
-        if sys.platform == 'win32':
+        if sys.platform[:3] == "win":
             subprocess.Popen(['start', filepath], shell=True)
         elif sys.platform == 'darwin':
             subprocess.Popen(['open', filepath])