From b6b11a931801b0ef0f66ace866bdc88c00ed4e0a Mon Sep 17 00:00:00 2001 From: Mike C Date: Tue, 12 Jan 2016 18:19:18 -0500 Subject: [PATCH] Fix bug with osmosis subprocess call, cleanup program output --- process_maps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process_maps.py b/process_maps.py index 2689830..81f5689 100755 --- a/process_maps.py +++ b/process_maps.py @@ -53,7 +53,7 @@ if __name__ == '__main__': print(' ', end='') print(line) subprocess.run([wget_cmd, '-P', 'dl', line.strip()], stdout=FNULL, stderr=subprocess.STDOUT) - print(' Sleeping 1m to prevent throttle/blocking') + print(' Sleeping to prevent throttle/blocking') time.sleep(300) # Seconds print('Decompressing maps (if necessary)') @@ -71,7 +71,7 @@ if __name__ == '__main__': print(' Found map: ', end='') print(os.path.join(dirpath, file)) files_to_process.append(os.path.join(dirpath, file)) - osmosis_cmd = [os.path.join(base_path, 'bin', 'osmosis', 'bin', 'osmosis', '-Djava.io.tmpdir=' + os.path.join(base_path), 'tmp')] + osmosis_cmd = [os.path.join(base_path, 'bin', 'osmosis', 'bin', 'osmosis'), '-Djava.io.tmpdir=' + os.path.join(base_path, 'tmp')] for file in files_to_process: if file.endswith('osm'): osmosis_cmd.extend(['--rx', 'file=' + file])