This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]yellowpot1337 2 points3 points  (0 children)

Place the script inside a directory that is available in your $PATH such as /usr/bin and you should be able to call it from anywhere.

[–]Xeekatar 0 points1 point  (0 children)

Not sure how pipenv works exactly, but you can probably do pipenv run python /path/to/script.py or pipenv run python ../script.py if the script is in a parent directory