PYTHONPATH on PC

Mikael Olofsson mikael at isy.liu.se
Wed Feb 23 15:26:54 EST 2000


On 23-Feb-00 Steve Holden wrote:
 >  Let's also not forget that this kind of stuff can be put in a
 >  "sitecustomize"
 >  module.  I use this both to add my personal directories and to remove some
 >  annoying duplication from the path due to Windows' case-insensitivity:
 >  
 >  """Site customization for holdenweb.com - Windows platforms."""
 >  
 >  import sys, string
 >  
 >  path = sys.path[:]
 >  sys.path = []
 >  for p in path:
 >      p=string.lower(p)
 >      if p not in sys.path: sys.path.append(p)
 >  
 >  sys.path.append(r"D:\Steve\Projects\Python")

That's something I haven't thought about. Thanks. Is this just a module
like any other module, or is there some extra magic involved?

/Mikael

-----------------------------------------------------------------------
E-Mail:  Mikael Olofsson <mikael at isy.liu.se>
WWW:     http://www.dtr.isy.liu.se/dtr/staff/mikael
Phone:   +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date:    23-Feb-00
Time:    21:22:27

This message was sent by XF-Mail.
-----------------------------------------------------------------------



More information about the Python-list mailing list