LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Default PATH (https://www.linuxquestions.org/questions/slackware-14/default-path-846245/)

njb 11-24-2010 06:42 AM

Default PATH
 
I have just installed SABnzb application in my home folder.
The executable file is SABnzb.py
When I run the command in the Konsole
# python SABnzb.py
I have this
Quote:

python: can't open file 'SABnzbd.py': [Errno 2] No such file or directory
:confused: NjB :cool:

repo 11-24-2010 06:50 AM

Try to give the whole path to the file.
Or add the directory containing the file to your path
make sure the file is executable.

Kind regards

njb 11-24-2010 07:27 AM

But where is my path ?
 
Quote:

Or add the directory containing the file to your path
But where is my path ?

:o NjB :o

manwichmakesameal 11-24-2010 07:40 AM

You can copy /etc/profile to ~/.profile and edit your path, or you can set up a ~/.bashrc and put your path in there. You can add something like:
Code:

PATH=${PATH}:/path/to/your/bin/directory
to it.

ponce 11-24-2010 08:05 AM

Code:

echo $PATH
to see how it's set system wide have a look in /etc/profile and /etc/profile.d/*
try also launching
Code:

set
with no arguments (man set).

catkin 11-24-2010 09:12 AM

Quote:

Originally Posted by ponce (Post 4169465)
Code:

echo $PATH
to see how it's set system wide have a look in /etc/profile and /etc/profile.d/*
try also launching
Code:

set
with no arguments (man set).

man set documents the Tcl set command on my system. help set documents the bash builtin set.


All times are GMT -5. The time now is 05:49 PM.