Welcome to the Linux Foundation Forum!
How to install python scripts as ROOT?
hello guys,
I am using Linux Mint 13 and everytime I open the python scripts I have to define the path that is
cd ~/Documents
./scriptname.py
Can you guys help me find a way to install python scripts so that i can open it up in the terminal without defining the path.?
0
Comments
Honesty my approach for this issue would be to create a ~/.scripts directory, add the line "export PATH=$PATH:~/.scripts" to your .bashrc file and create a symlink to the py file into the .scripts directory. This will allow the file to be easily accessible without showing the entire contents of "~/Documents" in tab complete.