Skip to content

Commit

Permalink
ulwgl_run: update format
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Feb 20, 2024
1 parent 4baebf2 commit f6ba346
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ulwgl_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,16 @@ def check_env(
if "PROTONPATH" not in os.environ:
os.environ["PROTONPATH"] = ""
get_ulwgl_proton(env)
elif Path("~/.local/share/Steam/compatibilitytools.d/" + os.environ["PROTONPATH"]).expanduser().is_dir():
env["PROTONPATH"] = Path("~/.local/share/Steam/compatibilitytools.d/").expanduser().joinpath(os.environ["PROTONPATH"])
elif (
Path("~/.local/share/Steam/compatibilitytools.d/" + os.environ["PROTONPATH"])
.expanduser()
.is_dir()
):
env["PROTONPATH"] = (
Path("~/.local/share/Steam/compatibilitytools.d/")
.expanduser()
.joinpath(os.environ["PROTONPATH"])
)
elif not Path(os.environ["PROTONPATH"]).expanduser().is_dir():
os.environ["PROTONPATH"] = ""
get_ulwgl_proton(env)
Expand Down

0 comments on commit f6ba346

Please sign in to comment.