Improved configuration to handle absolute paths in add_json_file
This commit is contained in:
parent
fe5c41ac09
commit
a95d6e7f8a
@ -285,6 +285,9 @@ class Configuration(ConfigurationABC):
|
|||||||
exit()
|
exit()
|
||||||
|
|
||||||
def add_json_file(self, name: str, optional: bool = None, output: bool = True, path: str = None):
|
def add_json_file(self, name: str, optional: bool = None, output: bool = True, path: str = None):
|
||||||
|
if os.path.isabs(name):
|
||||||
|
file_path = name
|
||||||
|
else:
|
||||||
path_root = self._application_environment.working_directory
|
path_root = self._application_environment.working_directory
|
||||||
if path is not None:
|
if path is not None:
|
||||||
path_root = path
|
path_root = path
|
||||||
|
Loading…
Reference in New Issue
Block a user