From 967eb606da88fef0e0a467f5a60ad65d0ba2bbd0 Mon Sep 17 00:00:00 2001 From: Michael Aldrich <11843596+MichaelAldrich@users.noreply.github.com> Date: Thu, 15 Sep 2022 23:44:07 +0000 Subject: [PATCH] ! Unify user directory. All instances of nxt on your machine will now share preferences/configs found at `$USERPROFILE/nxt` After launching with this update you may find your preferences reset. This will happen if you were only working with nxt_maya for sure. If you want your old preferences, navigate to `os.path.expanduser("~/nxt")` and copy the contents to the new unified location at `os.path.expandvars("$USERPROFILE/nxt")` --- nxt/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxt/constants.py b/nxt/constants.py index c9f984b..5146109 100644 --- a/nxt/constants.py +++ b/nxt/constants.py @@ -35,7 +35,7 @@ class GRAPH_VERSION(object): if USER_DIR_ENV_VAR in os.environ: USER_DIR = os.environ.get(USER_DIR_ENV_VAR) else: - USER_DIR = os.path.expanduser(os.path.join('~', 'nxt')) + USER_DIR = os.path.expandvars(os.path.join('$USERPROFILE/nxt')) SITE_DIR = USER_DIR if SITE_DIR_ENV_VAR in os.environ: