Skip to content

Commit

Permalink
Merge pull request #10 from alexanderquispe/server
Browse files Browse the repository at this point in the history
osrm
  • Loading branch information
TJhon authored Jun 29, 2023
2 parents 1546c93 + a670dc1 commit 2438f7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions osrmareas/osrm.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def prepare_server(self):
run_first = 'no'
run_second = 'no'

fl = tempfile.NamedTemporaryFile(delete=False, suffix='.bat')
file = fl.name

if os.path.exists(osrm_file):
print('Found osrm file')
run_first = input(f"An OSRM file named '{osrm_file}' was found. Do you want to run the following command again: `osrm_extract.exe -p car.lua {pbf_file}`? [yes, no] (This will take some time)")
Expand All @@ -62,8 +65,6 @@ def prepare_server(self):
comand = f'''
{gen_route}
'''
fl = tempfile.NamedTemporaryFile(delete=False, suffix='.bat')
file = fl.name

if os.path.exists(self._contract_file):
print('Found contract file')
Expand Down

0 comments on commit 2438f7b

Please sign in to comment.