Fix duplicated warning message and print path

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2020-01-15 15:15:30 +00:00
parent fa3171c222
commit 495cec60d6

7
build
View file

@ -98,8 +98,8 @@ def get_bounds(file_path):
ret.append(coords)
return ret
except:
print("WARNING: Getting bounds failed")
return []
print("WARNING: Getting bounds from '" + file_path + "' failed")
sys.exit(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:
if build_all:
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_build(bounds[0]["west"], bounds[0]["south"], bounds[0]["east"], bounds[0]["north"], log_done=True, chunk_size=chunk_size)
else: