diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-14 15:59:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-14 15:59:08 +0400 |
commit | 475c45e4b1c3052885c222bd42afd4d78343b74a (patch) | |
tree | c848b5b644796ccbedd2e06b1b911d3bccac5719 /io_anim_camera.py | |
parent | d20a38c4069ff1896b20eb3cef83cfab77e862ca (diff) |
bugfix [#22843] Cannot export to folder with ".blend" on the end.
Diffstat (limited to 'io_anim_camera.py')
-rw-r--r-- | io_anim_camera.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_anim_camera.py b/io_anim_camera.py index d50fce1f..1f1b51ab 100644 --- a/io_anim_camera.py +++ b/io_anim_camera.py @@ -146,7 +146,8 @@ class CameraExporter(bpy.types.Operator): def menu_export(self, context): - default_path = bpy.data.filepath.replace(".blend", ".py") + import os + default_path = os.path.splitext(bpy.data.filepath)[0] + ".py" self.layout.operator(CameraExporter.bl_idname, text="Cameras & Markers (.py)").filepath = default_path |