Skip to content

Commit

Permalink
Merge pull request #88 from AFCStudio/fix/select-game-directory
Browse files Browse the repository at this point in the history
Select Game Directory Fix
  • Loading branch information
feedbackex authored Oct 23, 2016
2 parents 229d378 + 7e126ce commit 95ee625
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion io_bcry_exporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ class SelectGameDirectory(bpy.types.Operator, PathSelectTemplate):

def process(self, filepath):
if not os.path.isdir(filepath):
raise exceptions.NoGameDirectorySelected
filepath = os.path.dirname(filepath)
if not os.path.isdir(filepath):
raise Exception("Directory is invalid!")

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

0 comments on commit 95ee625

Please sign in to comment.