Skip to content

Commit

Permalink
adjustments after testing on Windows. Extension needed
Browse files Browse the repository at this point in the history
  • Loading branch information
treee111 committed Jun 6, 2022
1 parent 94b4ffa commit e188ae0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def test_installed_programs_windows(self):
self.assertTrue(os.path.exists(get_tooling_win_path(
['Osmosis', 'bin', 'osmosis.bat'])))
self.assertTrue(os.path.exists(
get_tooling_win_path(['osmconvert'])))
get_tooling_win_path(['osmconvert.exe'])))
self.assertTrue(os.path.exists(
get_tooling_win_path(['osmfilter'])))
self.assertTrue(os.path.exists(get_tooling_win_path(['7za'])))
get_tooling_win_path(['osmfilter.exe'])))
self.assertTrue(os.path.exists(get_tooling_win_path(['7za.exe'])))

def check_installation_of_program(self, program):
"""
Expand Down
6 changes: 3 additions & 3 deletions wahoomc/setup_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ def check_installation_of_required_programs():
sys.exit(
f"Osmosis is not available. {text_to_docu}")

if not os.path.exists(get_tooling_win_path(['osmconvert'])):
if not os.path.exists(get_tooling_win_path(['osmconvert.exe'])):
sys.exit(
f"osmconvert is not available. {text_to_docu}")

if not os.path.exists(get_tooling_win_path(['osmfilter'])):
if not os.path.exists(get_tooling_win_path(['osmfilter.exe'])):
sys.exit(
f"osmfilter is not available. {text_to_docu}")

if not os.path.exists(get_tooling_win_path(['7za'])):
if not os.path.exists(get_tooling_win_path(['7za.exe'])):
sys.exit(
f"7za is not available. {text_to_docu}")

Expand Down

0 comments on commit e188ae0

Please sign in to comment.