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


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.?


  • mfillpot
    mfillpot Posts: 2,177
    You can add the directory that contains the file to your PATH variable so it will always be accessible.

    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.


Upcoming Training