Where does sys.path get initialized

G

Guest

Hi,

Can anyone tell me where sys.path gets initialized? I know that I can
import sys and then execute sys.path.append(pathname), but I'd prefer
not to have to do that everytime I use PythonWin or Idle. I'm using
Python on both Linux and Windows XP, and I suspect the process is
different for each.

Thanks in advance,
Mike
 
S

Scott David Daniels

mmoum said:
Hi,

Can anyone tell me where sys.path gets initialized? I know that I can
import sys and then execute sys.path.append(pathname), but I'd prefer
not to have to do that everytime I use PythonWin or Idle. I'm using
Python on both Linux and Windows XP, and I suspect the process is
different for each.

Thanks in advance,
Mike
Consider placing a ".pth" file in your python directory.
This should solve your problems in an easily reversible way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top