Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-08-29 10:02:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-29 10:02:19 +0400
commit73068ca3df352ffceb898086cea3f62139e4d494 (patch)
tree356b6030aeb081a5e10567e1e53658cc547bdb67 /release
parentbd2f6c590707f6677da5ad84d29c10029936f2cf (diff)
use os.remove rather then unlink (the same but all other areas use 'remove')
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/wm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 0b379d3852c..d505aa36d1c 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1286,10 +1286,10 @@ class WM_OT_blenderplayer_start(Operator):
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'}