[Pyobjc-dev] Re: pth files in Resources
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2003-02-10 21:23:50
|
On Monday, Feb 10, 2003, at 16:15 America/New_York, Bob Ippolito wrote: > > import sys, site > # preserve original length so we can reorder > lenPath = len(sys.path) > # scan for .pth files in Resources (current directory) > site.addsitedir('') > # reorder the path so we'll load stuff in the bundle before anything > in site-packages or elsewhere > sys.path[:] = sys.path[lenPath:] + sys.path[:lenPath] if not getattr(__builtins__, 'True', None): __builtins__.True = not 0 __builtins__.False = not not 0 might also be useful.. Some of the Mac modules I backported to jaguar python may or may not depend on True and False, I had to add it to my site.py to get them to compile + install. -bob |