Skip to content

Commit

Permalink
Hotfix - DCS Input file crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexeh committed Jan 23, 2021
1 parent 1b74671 commit b3841d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

setup(
name='Joystick Diagrams',
version='1.0.0',
version='1.2.1',
description='Automatically create diagrams for your throttles, joysticks and custom HID devices',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
3 changes: 2 additions & 1 deletion src/adaptors/dcs_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def __validateProfile(self, item):
Return Valid Profile
'''
#TODO add additional checking for rogue dirs/no files etc
if 'joystick' in os.listdir(os.path.join(self.path, 'Config', 'Input', item)):

if os.path.isdir(os.path.join(self.path, 'Config', 'Input', item)) and 'joystick' in os.listdir(os.path.join(self.path, 'Config', 'Input', item)):
return os.listdir(os.path.join(self.path, 'Config', 'Input', item, 'joystick'))
else:
return False
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "1.2.0"
VERSION = "1.2.1"

0 comments on commit b3841d6

Please sign in to comment.