do not overwrite custom set module paths

Given that the module is now copied to the project directory
when no module path is set, we need the information that the
module path is empty. Therefore hand in the default module path
in a separate variable.
This commit is contained in:
Sarah Hoffmann
2021-02-02 17:33:41 +01:00
parent 36447c488a
commit cb06d1f4ca
5 changed files with 11 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ class CommandlineParser:
for arg in ('module_dir', 'osm2pgsql_path', 'phplib_dir', 'data_dir', 'phpcgi_path'):
setattr(args, arg, Path(kwargs[arg]))
args.project_dir = Path(args.project_dir)
args.project_dir = Path(args.project_dir).resolve()
logging.basicConfig(stream=sys.stderr,
format='%(asctime)s: %(message)s',
@@ -91,7 +91,7 @@ class CommandlineParser:
args.config = Configuration(args.project_dir, args.data_dir / 'settings')
log = logging.getLogger()
log.warn('Using project directory: %s', str(args.project_dir))
log.warning('Using project directory: %s', str(args.project_dir))
try:
return args.command.run(args)