Skip to content

Commit aa7711a

Browse files
committed
fix: small tweak to error reporting
1 parent 2c55da4 commit aa7711a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node_to_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def execute(self, context):
147147
ng_name = ng.name.lower().replace(' ', '_')
148148
class_name = ng.name.replace(" ", "")
149149
dir = bpy.path.abspath("//")
150-
if not dir:
150+
if not dir or dir == "":
151151
self.report({'ERROR'},
152152
("NodeToPython: Save your blend file before using "
153153
"NodeToPython!"))

0 commit comments

Comments
 (0)