We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46c1621 commit d51fc3fCopy full SHA for d51fc3f
1 file changed
nxc/paths.py
@@ -2,7 +2,11 @@
2
import sys
3
import nxc
4
5
-NXC_PATH = os.path.join(os.getenv('XDG_CONFIG_HOME', os.path.expanduser("~/")), "nxc")
+if 'XDG_CONFIG_HOME' in os.environ:
6
+ NXC_PATH = os.path.join(os.getenv('XDG_CONFIG_HOME'), "nxc")
7
+else:
8
+ NXC_PATH = os.path.expanduser("~/.nxc")
9
+
10
if os.name == "nt":
11
TMP_PATH = os.getenv("LOCALAPPDATA") + "\\Temp\\nxc_hosted"
12
elif hasattr(sys, "getandroidapilevel"):
0 commit comments