final updates

This commit is contained in:
2024-12-13 17:22:46 -06:00
parent bae470cd01
commit 59a4e96632

View File

@@ -46,12 +46,14 @@ def ensure_bin_in_path(bin_path):
path_file = open(os.path.join(os.path.expanduser("~"), ".zshrc"), 'a')
elif current_shell == 'bash':
path_file = open(os.path.join(os.path.expanduser("~"), ".bashrc"), 'a')
else:
path_file = None
print(f"Appending {bin_path} to system' PATH.")
path_file.write(f"export PATH=$PATH:{bin_path}")
if path_file:
path_file.write(f"export PATH=$PATH:{bin_path}\n")
sys.path.append(bin_path)
print(f"Added {bin_path} to the system path.")
def main():