Fix mistake I did when resolving conflicts in dev.py between #79 and #89

This commit is contained in:
Martin Fouilleul 2023-09-16 18:55:25 +02:00
parent 4865e2142d
commit 00555dc03f
1 changed files with 14 additions and 0 deletions

View File

@ -570,6 +570,20 @@ def install(args):
print(f"export PATH=\"{bin_dir}:$PATH\"") print(f"export PATH=\"{bin_dir}:$PATH\"")
print() print()
def install_path():
if platform.system() == "Windows":
orca_dir = os.path.join(os.getenv("LOCALAPPDATA"), "orca")
else:
orca_dir = os.path.expanduser(os.path.join("~", ".orca"))
bin_dir = os.path.join(orca_dir, "bin")
return (orca_dir, bin_dir)
def yeet(path):
os.makedirs(path, exist_ok=True)
shutil.rmtree(path)
def uninstall(args): def uninstall(args):
orca_dir, bin_dir = install_path() orca_dir, bin_dir = install_path()