From 233d49bb4c3cf96f4979aa8e878635376cffad5b Mon Sep 17 00:00:00 2001 From: Hemna Date: Tue, 3 Jan 2023 15:38:19 -0500 Subject: [PATCH] Fixed save directory default --- aprsd/conf/common.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aprsd/conf/common.py b/aprsd/conf/common.py index 40974c8..ddf4a56 100644 --- a/aprsd/conf/common.py +++ b/aprsd/conf/common.py @@ -1,6 +1,10 @@ +from pathlib import Path + from oslo_config import cfg +home = str(Path.home()) +DEFAULT_CONFIG_DIR = f"{home}/.config/aprsd/" APRSD_DEFAULT_MAGIC_WORD = "CHANGEME!!!" admin_group = cfg.OptGroup( @@ -30,7 +34,7 @@ aprsd_opts = [ ), cfg.StrOpt( "save_location", - default="~/.config/aprsd", + default=DEFAULT_CONFIG_DIR, help="Save location for packet tracking files.", ), cfg.BoolOpt(