George Trojan george.trojan at
Mon Jan 25 23:27:19 CET 2010

Inspired by the 'Default path for files' thread I tried to use 
sitecustomize in my code. What puzzles me is that the's main() 
is not executed. My is
def main():
     print 'In Main()'
and the test program is
import site
print 'Hi'
The output is
$ python
When I uncomment the site.main() line the output is
$ python
In Main()
If I change import site to import sitecustomize the output is as above. 
  What gives?
Adding to the confusion, I found which contradicts


More information about the Python-list mailing list