ActivePython Scripts help with ?

Hyperion Sorry at ButNo.com
Thu Apr 24 14:56:15 EDT 2003


Hi all

 I am new to python, and although I am learning at a good rate, things are
still a little shacky.

 Take today for instance, being new to linux also, I caused a problem for
myself.

 You see i wantedm idle, but on slackware 9.0 idle wasnt there with the 2.2
python, although it is supposedly to be shiped with it, anyway, with coming
from ActivePython on my windows xp box, I decided to install ActivePython
on my slackware box and take out the original install.

Wll I maniged to install it fine, but now I haven't got the slightest clue
what to put at the top of my scripts so the interpreter or what ever can
find them.
 You no the little bit at the top that starts with,  #!

The ActivePython Install is setup here as follows:

---------------
/home/me/ActivePython-2.2/bin
---------------

. I added that line to me PATH also in my /etc/profile  file as follows:

--------------------
# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/home/me/ActivePython-2.2/bin"

# For root users, ensure that /usr/local/sbin, /usr/sbin, and /sbin are in
# the $PATH.  Some means of connection don't add these by default (sshd
comes
# to mind).
if [ "`id -u`" = "0" ]; then
  echo $PATH | grep /usr/local/sbin 1> /dev/null 2> /dev/null
  if [ ! $? = 0 ]; then
    PATH=/usr/local/sbin:/usr/sbin:/sbin:/home/me/ActivePython-2.2/bin:$PATH
  fi
fi
------------------

So anyways can someone please help me with what I put in the top of my
scripts after the , #! ,  so I can run them.
And if there are any linux guru's out there that could check that PATH thing
out and see if its ok, I would be greatfull.

Thanks for your time people.
Hyperion






More information about the Python-list mailing list