import os def install_commands(path): user = '/usr/local/bin' for command in ['list-environment']: os.symlink(path, os.path.join(user, f'cd-{command}')