mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
fix pylint complaints
This commit is contained in:
parent
bf6252ff38
commit
44ca005f18
|
@ -74,7 +74,7 @@ def get_vk_icd_choices():
|
||||||
for loader in glob.glob(path):
|
for loader in glob.glob(path):
|
||||||
icd_key = os.path.basename(loader).split(".")[0]
|
icd_key = os.path.basename(loader).split(".")[0]
|
||||||
icd_files[icd_key].append(os.path.join(path, loader))
|
icd_files[icd_key].append(os.path.join(path, loader))
|
||||||
if not "amd_icd" in loader:
|
if "amd_icd" not in loader:
|
||||||
loaders.append(loader)
|
loaders.append(loader)
|
||||||
else:
|
else:
|
||||||
amdvlk.append(loader)
|
amdvlk.append(loader)
|
||||||
|
@ -84,13 +84,14 @@ def get_vk_icd_choices():
|
||||||
choices = [(_("Auto"), loader_files)]
|
choices = [(_("Auto"), loader_files)]
|
||||||
|
|
||||||
for icd_key in icd_files:
|
for icd_key in icd_files:
|
||||||
if not "amd_icd" in icd_key:
|
if "amd_icd" not in icd_key:
|
||||||
files = ":".join(icd_files[icd_key])
|
files = ":".join(icd_files[icd_key])
|
||||||
choices.append((icd_key.capitalize().replace("_icd", " ICD"), files))
|
choices.append((icd_key.capitalize().replace("_icd", " ICD"), files))
|
||||||
|
|
||||||
choices.append(("AMDVLK/AMDGPU-PRO", amdvlk_files))
|
choices.append(("AMDVLK/AMDGPU-PRO", amdvlk_files))
|
||||||
return choices
|
return choices
|
||||||
|
|
||||||
|
|
||||||
system_options = [ # pylint: disable=invalid-name
|
system_options = [ # pylint: disable=invalid-name
|
||||||
{
|
{
|
||||||
"option": "game_path",
|
"option": "game_path",
|
||||||
|
|
Loading…
Reference in a new issue