- cmd.extend(['--osm-file', fname, '--import-data'])
- proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ cmd.extend(['--osm-file', fname, '--import-data','--osm2pgsql-cache', '300'])
+ proc = subprocess.Popen(cmd, cwd=world.config.source_dir,
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE)