Confusion about scan_code in modulefinder.py (in python 2.6)

2010-01-12 Thread Brock Pytlik
I've been working with the modulefinder.py code recently and I've come across a bit of code I'm not grasping. In the scan_code function, there are the following lines: if sys.version_info >= (2, 5): scanner = self.scan_opcodes_25 else:

Re: System default sys.path

2009-07-02 Thread Brock Pytlik
David Lyon wrote: On Wed, 01 Jul 2009 19:48:04 -0700, Brock Pytlik wrote: Hi, I'm trying to find a way to get the value sys.path would have on a particular system if python was started with an empty python path. I do want it to include the site specific additional paths. I know I can

System default sys.path

2009-07-01 Thread Brock Pytlik
Hi, I'm trying to find a way to get the value sys.path would have on a particular system if python was started with an empty python path. I do want it to include the site specific additional paths. I know I can hack this information myself, but I'd rather be able to get this on demand so that i