diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-29 10:02:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-29 10:02:19 +0400 |
commit | 73068ca3df352ffceb898086cea3f62139e4d494 (patch) | |
tree | 356b6030aeb081a5e10567e1e53658cc547bdb67 /release/scripts | |
parent | bd2f6c590707f6677da5ad84d29c10029936f2cf (diff) |
use os.remove rather then unlink (the same but all other areas use 'remove')
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 4 |
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'} |