From 6c2cfe2f326374a4598bd5b962b8985836c4853c Mon Sep 17 00:00:00 2001 From: Frederic Guilbault <37122999+FredericGuilbault@users.noreply.github.com> Date: Tue, 6 Dec 2022 21:54:15 -0500 Subject: [PATCH] Querry effective $HOME path from OS Query the Operating systeme for the actual $HOME location it use is more reliable than assuming /home/user. --- openplotterSettings/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openplotterSettings/conf.py b/openplotterSettings/conf.py index 48187f0..3c81171 100644 --- a/openplotterSettings/conf.py +++ b/openplotterSettings/conf.py @@ -27,7 +27,7 @@ def __init__(self): except: import pwd self.user = pwd.getpwuid(int(os.environ["PKEXEC_UID"])).pw_name - self.home = '/home/'+self.user + self.home = os.path.expanduser('~'+self.user) self.data_conf = configparser.ConfigParser()