On Mon, Nov 17, 2008 at 12:27 PM, yanom @linuxmail.org <[EMAIL PROTECTED]> wrote: > >> ----- Original Message ----- >> From: "Nicholas Dudfield" <[EMAIL PROTECTED]> >> To: [email protected] >> Subject: Re: [pygame] regarding sys... >> Date: Mon, 17 Nov 2008 12:34:15 +1100 >> >> >> re/set the environment variable PYTHONPATH >> >> I need to add something permanently to sys.path . How do I make add >> > something to sys.path so that it stays there, even after i close python and >> > open it again? > >> > when i view sys.path in python, it shows a list of places. when i go to shell > and echo $PYTHONPATH it shows nothing at all. So i still just add my thing to > $PYTHONPATH? No, you don't *add* your path to PYTHONPATH. You set PYTHONPATH to your path. All the paths listed in PYTHONPATH are automatically added to sys,path. This is why it does not normally need to be set to anything.
David
