mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-26 14:45:48 +03:00
Simplify XDG_CONFIG_HOME handling
This commit is contained in:
parent
341bdd2296
commit
aaaef10ccb
5
proton
5
proton
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user