I installed a program that requires you to execute a python script like this:
python fit_locus.py --help
I want to make the file acessible to all users without requiring them to navigate to the folder of the python file, so they can execute said command from their home folders.
I tried adding the install folder to the PATH variable and tried to create a symlink of the file in /bin and /usr/bin but it didn't work.
Is it possible to do so or should I require the users to navigate to the folder where the program is installed?
EDIT: Here's my PATH variable:
Without the export:
/gasgano/bin:/opt/intel/composer_xe_2011_sp1.9.293/bin/intel64:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/esoreflex/bin:/opt/intel/composer_xe_2011_sp1.9.293/mpirt/bin/intel64
With the export:
/gasgano/bin:/opt/intel/composer_xe_2011_sp1.9.293/bin/intel64:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/esoreflex/bin:/opt/intel/composer_xe_2011_sp1.9.293/mpirt/bin/intel64:/opt/big-macs-calibrate/
And the path /opt/big-macs/calibrate/
is the one that contains the python script fit_locus.py
EDIT2:
On the installation instructions of the program I'm trying to make available to all users there's this little guide:
Set environmental variables:
1 - BIGMACS to the path of the installation directory
e.g.,
setenv BIGMACS /Users/ronald/big-macs-calibrate/ (tcsh shell)
BIGMACS=/Users/ronald/big-macs-calibrate/ (bash shell)
export BIGMACS
2 - add installation directory to PYTHONPATH
e.g.,
setenv PYTHONPATH $BIGMACS:PYTHONPATH (tcsh shell)
PYTHONPATH=$BIGMACS:PYTHONPATH
export PYTHONPATH
But it doesn't work either. The error I get when I try to run python fit_locus.py --help
is:
python: can't open file 'fit_locus.py': [Errno 2] No such file or directory
PATH
variable