Merge main

This commit is contained in:
kramo
2023-05-27 19:08:40 +02:00
57 changed files with 2176 additions and 1052 deletions

View File

@@ -24,10 +24,9 @@ from pathlib import Path
def check_install(check, locations, setting=None, subdirs=(Path(),)):
for location in locations:
for subdir in (Path(),) + subdirs:
if (location / subdir / check).is_file() or (
location / subdir / check
).exists():
if (location / subdir / check).exists():
if setting:
setting[0].set_string(setting[1], str(location / subdir))
return location / subdir
return False