Skip to content

Commit

Permalink
Merge pull request #45 from Rexeh/Hotfix
Browse files Browse the repository at this point in the history
Hotfix - DCS Folder Crash
  • Loading branch information
Rexeh authored Jan 23, 2021
2 parents 62b23c6 + b3841d6 commit 943ff6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ __pycache__/
src/__pycache__
src/adaptors/__pycache__/
src/functions/__pycache__/
tests/__pycache__/*
tests/__pycache__
tests/*/__pycache__/
*.code-workspace
.vscode/
Expand All @@ -13,5 +13,5 @@ tests/*/__pycache__/
temp/
diagrams/*.svg
play*.py
tests/__pycache__/test_helpers.cpython-38-pytest-6.0.2.pyc
tests/__pycache__/*.pyc
untitled.ui
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 943ff6c

Please sign in to comment.