From 6c57a7a824db40da9c17105665dc8d54a27058f3 Mon Sep 17 00:00:00 2001 From: rebecca810 Date: Fri, 17 Feb 2023 17:36:45 -0500 Subject: [PATCH] 61-Use a cross-platform reference to HOME directory in config.py --- txt2hpo/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txt2hpo/config.py b/txt2hpo/config.py index bc97d41..6d1c9ec 100644 --- a/txt2hpo/config.py +++ b/txt2hpo/config.py @@ -26,7 +26,7 @@ # create config directory if it doesn't exist -config_directory = os.path.join(os.environ.get('HOME'), f'.{__project__}') +config_directory = os.path.join(os.path.expanduser('~'), f'.{__project__}') try: os.makedirs(config_directory)