Run a python script from any directory
I'm a newbie and I am running Fedora 19. I have a python script called runScript.py located in /home/swooten/python directory. I would like to run this script from any directory. I edited the .bashrc and .bash_profile...input info below:
.bash_profile: I entered the bold text PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/python/runScript.py
.bashrc: I entered the bold text
User specific aliases and functions
CLASSPATH=$CLASSPATH:/home/swooten/python/runScript.py export CLASSPATH
When I run the ./runScript.py from /home/swooten I get the following error: bash: ./runScript.py No such file or diectory
Can someone please help me?