Skip to content

Commit

Permalink
open output folder fix
Browse files Browse the repository at this point in the history
  • Loading branch information
p2or authored Oct 1, 2021
1 parent f039e8a commit 7223543
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion loom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3003,7 +3003,13 @@ class LOOM_OT_open_output_folder(bpy.types.Operator):
bl_options = {'REGISTER'}

def execute(self, context):
fp = os.path.dirname(context.scene.render.filepath)
fp = os.path.dirname(
os.path.realpath(
bpy.path.abspath(
context.scene.render.filepath
)
)
)
if not os.path.isdir(fp):
self.report({'INFO'}, "Folder does not exist")
return {"CANCELLED"}
Expand Down

0 comments on commit 7223543

Please sign in to comment.