Skip to content

Commit

Permalink
Merge pull request #9 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 8795bb0 + bd3891a commit 1546c93
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions osrmareas/osrm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def prepare_server(self):
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)")
else:
with open(file, 'w') as bt:
bt.write(comand1)
subprocess.Popen(['start', 'cmd', '/c', 'call', file], shell = True)
print(comand1)

if "n" in run_first:
comand = f'''
Expand All @@ -63,10 +68,6 @@ def prepare_server(self):
if os.path.exists(self._contract_file):
print('Found contract file')
run_second=input(f"Contract found, run again?")
else:
with open(file, 'w') as bt:
bt.write(comand1)
subprocess.Popen(['start', 'cmd', '/c', 'call', file], shell = True)

if 'n' in run_second:
comand = ''
Expand Down

0 comments on commit 1546c93

Please sign in to comment.