From dcf0fae2fa81ead61e90cf9dbb21eea5500d2ebd Mon Sep 17 00:00:00 2001 From: paugier Date: Mon, 16 Dec 2024 23:10:20 +0100 Subject: [PATCH] Windows: fix backup name --- src/hg_setup/init_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hg_setup/init_cmd.py b/src/hg_setup/init_cmd.py index e999d4e..55eb8df 100644 --- a/src/hg_setup/init_cmd.py +++ b/src/hg_setup/init_cmd.py @@ -198,7 +198,7 @@ def init_tui(name, email): def save_existing_file(path): now = datetime.now() - path_saved = path.with_name(path.name + f"_{now:%Y-%m-%d_%H:%M:%S}") + path_saved = path.with_name(path.name + f"_{now:%Y-%m-%d_%H-%M-%S}") os.rename(path, path_saved)