Skip to content
Snippets Groups Projects
Commit 1ac12cb5 authored by Krzysztof Mochocki's avatar Krzysztof Mochocki
Browse files

Fix renaming of generated config

parent 1f86655b
No related branches found
No related tags found
No related merge requests found
Pipeline #115993 passed
...@@ -186,7 +186,7 @@ class Executable(Closeable, Generic[ConfigT, ArgumentT]): ...@@ -186,7 +186,7 @@ class Executable(Closeable, Generic[ConfigT, ArgumentT]):
def generate_default_config(self) -> ConfigT: def generate_default_config(self) -> ConfigT:
path_to_config = self.working_directory / (Config.DEFAULT_FILE_NAME) path_to_config = self.working_directory / (Config.DEFAULT_FILE_NAME)
self.run(blocking=True, arguments=self.__arguments.just_dump_config()) self.run(blocking=True, arguments=self.__arguments.just_dump_config())
temp_path_to_file = path_to_config.rename(Config.DEFAULT_FILE_NAME + ".tmp") temp_path_to_file = path_to_config.rename(self.working_directory / (Config.DEFAULT_FILE_NAME + ".tmp"))
return self.config.load(temp_path_to_file) return self.config.load(temp_path_to_file)
def get_help_text(self) -> str: def get_help_text(self) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment