final updates
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user