Python Path settings

Guy Bowden <[email protected]> Mon, 28 Sep 2009 21:24:35 +0200
Newsgroups gmane.comp.ide.komodo.general
Message-ID <[email protected]>
Hi All,

I'm just getting to grips with Komodo IDE as my Django dev environment..

However I can't figure out why the Python path is so different when I  
try a simple debug.  Or when using the python console.

I've set it to use the same python path as my default in Terminal "/ 
usr/bin/python" - which loads the same python (2.5.4) but doesn't have  
all my python paths in there from my various installed python apps.   
And doesn't include my /Library/Python/2.5/site-packages/ directory  
either.. I can add that in the preferences, but some of the others  
are .egg files which it won't allow me to add (and I don't want to  
have to add them manually - I want it to run like my Terminal one  
does...)

 From the command line:

guys-macbook:-Tmp- guy$ python
Python 2.5.4 (r254:67916, Jul  7 2009, 23:51:24)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import sys
 >>> sys.path
['', '/Library/Python/2.5/site-packages/MySQL_python-1.2.2-py2.5- 
macosx-10.5-i386.egg', '/Library/Python/2.5/site-packages/ 
django_threaded_multihost-1.2-py2.5.egg', '/Library/Python/2.5/site- 
packages/geopy-0.93-py2.5.egg', '/Library/Python/2.5/site-packages/ 
elementtree-1.2.7_20070827_preview-py2.5.egg', '/Library/Python/2.5/ 
site-packages/docutils-0.5-py2.5.egg', '/Library/Python/2.5/site- 
packages/pygpx-0.2-py2.5.egg', '/Library/Python/2.5/site-packages/ 
django_registration-0.7-py2.5.egg', '/Library/Python/2.5/site-packages/ 
markdown-1.7-py2.5.egg', '/Library/Python/2.5/site-packages/ 
setuptools-0.6c8-py2.5.egg', '/Library/Python/2.5/site-packages/ 
django_maintenancemode-0.9.2-py2.5.egg', '/Library/Python/2.5/site- 
packages/django_profiles-0.2-py2.5.egg', '/System/Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python25.zip', '/System/Library/ 
Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/System/ 
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat- 
darwin', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/plat-mac', '/System/Library/Frameworks/Python.framework/ 
Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages', '/System/ 
Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python', '/ 
System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/lib-dynload', '/Library/Python/2.5/site-packages', '/Library/ 
Python/2.5/site-packages/PIL', '/System/Library/Frameworks/ 
Python.framework/Versions/2.5/Extras/lib/python/PyObjC', '/System/ 
Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/ 
wx-2.8-mac-unicode']
 >>>


from the Komodo Python console:

Python 2.5.4 (r254:67916, Jul  7 2009, 23:51:24)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "copyright", "credits" or "license" for more information.
import sys
sys.path
['/Users/guy/Work/blah/site/doorstepskis/trunk/wwwroot', '/ 
Applications/Komodo IDE.app/Contents/SharedSupport/dbgp/pythonlib', '/ 
Applications/Komodo IDE.app/Contents/SharedSupport/dbgp/bin', '/Users/ 
guy/Work/blahblah/, '/Library/Python/2.5/site-packages', '/usr/ 
bin/../../System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python25.zip', '/usr/bin/../../System/Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python2.5/', '/usr/bin/../../System/ 
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat- 
darwin', '/usr/bin/../../System/Library/Frameworks/Python.framework/ 
Versions/2.5/lib/python2.5/plat-mac', '/usr/bin/../../System/Library/ 
Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib- 
scriptpackages', '/usr/bin/../../System/Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python2.5/../../Extras/lib/python',  
'/usr/bin/../../System/Library/Frameworks/Python.framework/Versions/ 
2.5/lib/python2.5/lib-tk', '/usr/bin/../../System/Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python2.5/lib-dynload']


What's going on? how can I make it right?

System is: OSX 10.6 running Python 2.5.4 and Komodo IDE 5.2

Cheers,

Guy
_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss