Simplify XDG_CONFIG_HOME handling

This commit is contained in:
Seppo Yli-Olli 2018-10-15 17:51:29 +03:00 committed by Andrew Eikum
parent 341bdd2296
commit aaaef10ccb

5
proton
View File

@ -290,10 +290,7 @@ with prefix_lock:
vr_config is None or \
vr_log is None:
try:
if "XDG_CONFIG_HOME" in os.environ:
path = os.environ["XDG_CONFIG_HOME"]
else:
path = os.environ["HOME"] + "/.config"
path = os.environ.get("XDG_CONFIG_HOME", os.environ["HOME"] + "/.config")
path = path + "/openvr/openvrpaths.vrpath"
with open(path, "r") as jfile: