My end goal is simple: Store a set of .py scripts on my Linux system such that I can:
- Run them from the command line without using /Python [name]
- Edit them easily
I can fix the first issue by storing the scripts in /usr/local/bin/
This causes the second issue, because now when I attempt to open the script for editing purposes, I am denied permission. I can partially fix this issue by using /sudo vi [name], which is a disappointing fix because who wants to code in vi?
So I either want the ability to read and write scripts in /usr/local/bin/, or I need the ability to store the scripts elsewhere yet still have them accessible from the command line.
My current (broken*) fix is to store them in a personal directory located somewhere in my home directory, which is added to my path. I have heard this is terrible style however. Thoughts?
*I am currently having trouble adding a personal folder to the PATH. This is content for another question however .