proton: Check that we're running as a script

This commit is contained in:
Andrew Eikum 2019-07-29 14:09:28 -05:00
parent 055e095af7
commit d0346080bd

1
proton
View File

@ -660,6 +660,7 @@ class Session:
self.run_proc([g_proton.wine_bin, "steam"] + sys.argv[2:])
if __name__ == "__main__":
if not "STEAM_COMPAT_DATA_PATH" in os.environ:
log("No compat data path?")
sys.exit(1)