[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59626] trunk/blender/release/scripts/ startup/bl_operators/wm.py: use os.remove rather then unlink ( the same but all other areas use 'remove')
Campbell Barton
ideasman42 at gmail.com
Thu Aug 29 08:02:19 CEST 2013
Revision: 59626
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59626
Author: campbellbarton
Date: 2013-08-29 06:02:19 +0000 (Thu, 29 Aug 2013)
Log Message:
-----------
use os.remove rather then unlink (the same but all other areas use 'remove')
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 2013-08-29 05:34:58 UTC (rev 59625)
+++ trunk/blender/release/scripts/startup/bl_operators/wm.py 2013-08-29 06:02:19 UTC (rev 59626)
@@ -1286,10 +1286,10 @@
self.report({'ERROR'}, "Player path: %r not found" % player_path)
return {'CANCELLED'}
- filepath = bpy.data.filepath+'~' if bpy.data.is_saved else os.path.join(bpy.app.tempdir, "game.blend")
+ filepath = bpy.data.filepath + '~' if bpy.data.is_saved else os.path.join(bpy.app.tempdir, "game.blend")
bpy.ops.wm.save_as_mainfile('EXEC_DEFAULT', filepath=filepath, copy=True)
subprocess.call([player_path, filepath])
- os.unlink(filepath)
+ os.remove(filepath)
return {'FINISHED'}
More information about the Bf-blender-cvs
mailing list