From 73068ca3df352ffceb898086cea3f62139e4d494 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 29 Aug 2013 06:02:19 +0000 Subject: use os.remove rather then unlink (the same but all other areas use 'remove') --- release/scripts/startup/bl_operators/wm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'release') 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'} -- cgit v1.2.3