Skip to content

Commit 95ee625

Browse files
authored
Merge pull request #88 from AFCStudio/fix/select-game-directory
Select Game Directory Fix
2 parents 229d378 + 7e126ce commit 95ee625

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

io_bcry_exporter/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ class SelectGameDirectory(bpy.types.Operator, PathSelectTemplate):
152152

153153
def process(self, filepath):
154154
if not os.path.isdir(filepath):
155-
raise exceptions.NoGameDirectorySelected
155+
filepath = os.path.dirname(filepath)
156+
if not os.path.isdir(filepath):
157+
raise Exception("Directory is invalid!")
156158

157159
Configuration.game_dir = filepath
158160
bcPrint("Game directory: {!r}.".format(

0 commit comments

Comments
 (0)