switch IMPORT_STYLE to use generic file search

Allows relative paths wrt project directory.
This commit is contained in:
Sarah Hoffmann
2021-10-22 16:49:57 +02:00
parent 0ae8d7ac08
commit 507fdd4f40
3 changed files with 23 additions and 8 deletions

View File

@@ -123,7 +123,7 @@ class Configuration:
if style in ('admin', 'street', 'address', 'full', 'extratags'):
return self.config_dir / 'import-{}.style'.format(style)
return Path(style)
return self.find_config_file('', 'IMPORT_STYLE')
def get_os_env(self):