Phillip J. Eby wrote: > At 03:22 PM 3/11/2006 -0600, Ian Bicking wrote: >> #!/usr/bin/python -S >> import sys, os >> join, dirname = os.path.join, os.path.dirname >> lib_dir = join(dirname(dirname(__file__)), 'lib', 'python%s.%s' % >> tuple(sys.version_info[:2])) >> sys.path.insert(0, lib_dir) >> import site >> ... normal stuff ... > > FYI, I plan to write a proposal next week for script path freezing, > along the lines of what I talked with you and Jim Fulton at PyCon > about. The basic idea is that there'll be a '.pylibs' file alongside > the script (e.g. 'foo.pylibs' alongside a 'foo' script) that lists what > should be at the front of sys.path.
Will this happen before the import of site.py? I would very much like it to. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
