Skip to content

Commit d51fc3f

Browse files
committed
Fix . missing from classic path
1 parent 46c1621 commit d51fc3f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

nxc/paths.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
import sys
33
import nxc
44

5-
NXC_PATH = os.path.join(os.getenv('XDG_CONFIG_HOME', os.path.expanduser("~/")), "nxc")
5+
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+
610
if os.name == "nt":
711
TMP_PATH = os.getenv("LOCALAPPDATA") + "\\Temp\\nxc_hosted"
812
elif hasattr(sys, "getandroidapilevel"):

0 commit comments

Comments
 (0)