diff --git a/protonfixes/util.py b/protonfixes/util.py index d2df3156..8ff1bb59 100644 --- a/protonfixes/util.py +++ b/protonfixes/util.py @@ -26,16 +26,8 @@ def protondir(): """ Returns the path to proton """ - try: - proton_dir = glob.glob(os.path.join( - os.environ['STEAM_COMPAT_CLIENT_INSTALL_PATH'], - 'steamapps/common/Proton*'))[0] - return proton_dir - except IndexError: - base = '/'.join(env['STEAM_COMPAT_DATA_PATH'].split('/')[:-2]) - proton_dir = glob.glob(os.path.join( - base, 'common/Proton*'))[0] - return proton_dir + proton_dir = '/'.join(sys.argv[0].split('/')[:-1]) + return proton_dir def protonprefix():