Skip to content

Commit

Permalink
Merge pull request #13 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 09ec228 + 649d23d commit 63296ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osrmareas/osrm.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ def prepare_server(self):

fl = tempfile.NamedTemporaryFile(delete=False, suffix='.bat')
file = fl.name
with open(file, 'w') as bt:
bt.write(comand)

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(comand)
subprocess.Popen(['start', 'cmd', '/c', 'call', file], shell = True)
print(file)
# print(file)
# print(comand1)

if "n" in run_first:
Expand Down

0 comments on commit 63296ab

Please sign in to comment.