Fix duplicated warning message and print path
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
fa3171c222
commit
495cec60d6
1 changed files with 2 additions and 5 deletions
7
build
7
build
|
@ -98,8 +98,8 @@ def get_bounds(file_path):
|
||||||
ret.append(coords)
|
ret.append(coords)
|
||||||
return ret
|
return ret
|
||||||
except:
|
except:
|
||||||
print("WARNING: Getting bounds failed")
|
print("WARNING: Getting bounds from '" + file_path + "' failed")
|
||||||
return []
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
def run_build(west, south, east, north, log_done=False, start_w=None, start_s=None, chunk_size=1):
|
def run_build(west, south, east, north, log_done=False, start_w=None, start_s=None, chunk_size=1):
|
||||||
|
@ -168,9 +168,6 @@ start_time = time.time()
|
||||||
try:
|
try:
|
||||||
if build_all:
|
if build_all:
|
||||||
bounds = get_bounds("projects/" + project + "/settings")
|
bounds = get_bounds("projects/" + project + "/settings")
|
||||||
if bounds == []:
|
|
||||||
print("Unable to read project settings")
|
|
||||||
sys.exit(1)
|
|
||||||
run_command("rm -f projects/" + project + "/osm2city-exceptions.log")
|
run_command("rm -f projects/" + project + "/osm2city-exceptions.log")
|
||||||
run_build(bounds[0]["west"], bounds[0]["south"], bounds[0]["east"], bounds[0]["north"], log_done=True, chunk_size=chunk_size)
|
run_build(bounds[0]["west"], bounds[0]["south"], bounds[0]["east"], bounds[0]["north"], log_done=True, chunk_size=chunk_size)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue