INNER CODE UNIT · Python
installed_versions
AUNaseef/protonup · protonup/api.py:93
def installed_versions() -> list:
"""
List of proton installations
Return Type: list[str]
"""
installdir = install_directory()
versions_found = []
if os.path.exists(installdir):
folders = os.listdir(installdir)
# Find names of directories with proton
versions_found = [folder for folder in folders if os.path.exists(installdir + '/' + folder + "/proton")]
return versions_found
def get_proton(version=None, yes=True, dl_only=False, output=None) -> bool:
"""Download and (optionally) install Proton"""