Normalize relative path for emulator config file

Previously we couldn't use a relative path in --config option
because it was interpreted as a path relative to the package dir.

Task: 49792
Story: 2011082
Change-Id: I59664991079a969a5af93114a0ab45fd36a4bcbe
This commit is contained in:
Piotr Czarnik 2024-03-29 13:45:38 +02:00
parent cc738adf26
commit 240e8d754e

View File

@ -90,7 +90,7 @@ class Application(flask.Flask):
def configure(self, config_file=None, extra_config=None):
if config_file:
self.config.from_pyfile(config_file)
self.config.from_pyfile(os.path.abspath(config_file))
if extra_config:
self.config.update(extra_config)