path updates

master
Jaka Perovšek 2022-12-17 17:23:51 +01:00
parent c745a80407
commit a8d56e5c3c
2 changed files with 4 additions and 1 deletions

View File

@ -108,11 +108,14 @@ def create_install_frame(container):
def find_barotrauma_directory():
first_guess = Path("C:/Program Files (x86)/Steam/steamapps/common/Barotrauma")
second_guess = Path("D:/Steam/steamapps/common/Barotrauma")
third_guess = Path("D:/SteamLibrary/steamapps/common/Barotrauma")
if first_guess.is_dir():
return first_guess.as_posix()
elif second_guess.is_dir():
return second_guess.as_posix()
elif third_guess.is_dir():
return third_guess.as_posix()
else:
return False

View File

@ -41,7 +41,7 @@ def main():
subprocess.call(archive)
shutil.copy("./barotrauma-sunken-tapes.zip",
"../Nextcloud/barotrauma-sunken-tapes/barotrauma-sunken-tapes.zip")
"../../obzorje/barotrauma-sunken-tapes/barotrauma-sunken-tapes.zip")
os.remove("./barotrauma-sunken-tapes.zip")
rmfulldir("./barotrauma-sunken-tapes")