diff --git a/.gitignore b/.gitignore index 41aefca..41d9db8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ __pycache__/ src/__pycache__ src/adaptors/__pycache__/ src/functions/__pycache__/ -tests/__pycache__/* +tests/__pycache__ tests/*/__pycache__/ *.code-workspace .vscode/ @@ -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 diff --git a/setup.py b/setup.py index eb7718a..d649146 100644 --- a/setup.py +++ b/setup.py @@ -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', diff --git a/src/adaptors/dcs_world.py b/src/adaptors/dcs_world.py index 48b43a4..9efa499 100644 --- a/src/adaptors/dcs_world.py +++ b/src/adaptors/dcs_world.py @@ -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 diff --git a/src/version.py b/src/version.py index a875311..2fbf3f7 100644 --- a/src/version.py +++ b/src/version.py @@ -1 +1 @@ -VERSION = "1.2.0" \ No newline at end of file +VERSION = "1.2.1" \ No newline at end of file