added popos flatpack path

master
JoYo 2022-10-29 04:09:53 +00:00
parent c9ff88e45f
commit a2825684f7
1 changed files with 26 additions and 16 deletions

View File

@ -167,6 +167,30 @@ def parsing_live(path: Path):
return addon_name, _version, path return addon_name, _version, path
def eso_live_path_get():
if system() == "Windows":
eso_live_path = Path.home().joinpath(
"Documents\Elder Scrolls Online\live"
)
if eso_live_path.exists:
return eso_live_path
else:
eso_live_path = Path.home().joinpath(
".steam/steam/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/Documents/Elder Scrolls Online/live/"
)
if eso_live_path.exists():
return eso_live_path
eso_live_path = Path.home().joinpath(
".var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/Documents/Elder Scrolls Online/live"
)
if eso_live_path.exists():
return eso_live_path
raise Exception("Unable to find `steamuser/Documents/Elder Scrolls Online/live`, specify the full path and contact maintainer to see if they'll add it.")
def periodical_script(): def periodical_script():
parser = ArgumentParser( parser = ArgumentParser(
@ -180,14 +204,7 @@ def periodical_script():
if args.eso_live_path: if args.eso_live_path:
args.eso_live_path = Path(args.eso_live_path) args.eso_live_path = Path(args.eso_live_path)
else: else:
if system() == "Windows": args.eso_live_path = eso_live_path_get()
args.eso_live_path = Path.home().joinpath(
"Documents\Elder Scrolls Online\live"
)
else:
args.eso_live_path = Path.home().joinpath(
".steam/steam/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/Documents/Elder Scrolls Online/live/"
)
if args.verbose: if args.verbose:
level = logging.DEBUG level = logging.DEBUG
@ -246,14 +263,7 @@ def ttc():
if args.eso_live_path: if args.eso_live_path:
args.eso_live_path = Path(args.eso_live_path) args.eso_live_path = Path(args.eso_live_path)
else: else:
if system() == "Windows": args.eso_live_path = eso_live_path_get()
args.eso_live_path = Path.home().joinpath(
"Documents\Elder Scrolls Online\live"
)
else:
args.eso_live_path = Path.home().joinpath(
".steam/steam/steamapps/compatdata/306130/pfx/drive_c/users/steamuser/Documents/Elder Scrolls Online/live/"
)
if args.verbose: if args.verbose:
level = logging.DEBUG level = logging.DEBUG