From f69d86eca6277ea968725265b138e7aae8ec2401 Mon Sep 17 00:00:00 2001 From: "Mike A. Trethewey" Date: Tue, 10 Mar 2020 22:10:56 -0700 Subject: [PATCH] Test Linux user folder --- Utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Utils.py b/Utils.py index f0dba062..8376d5fb 100644 --- a/Utils.py +++ b/Utils.py @@ -78,7 +78,9 @@ def output_path(path): # True for expanding the tilde into a fully qualified path documents = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, True)[0] elif sys.platform.find("linux") or sys.platform.find("ubuntu") or sys.platform.find("unix"): - documents = os.path.join("~","Documents") + documents = os.path.expanduser("~") + print(documents) + documents = os.path.join(documents,"Documents") else: raise NotImplementedError('Not supported yet')