This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Сергей.Чупраков
Recipients Сергей.Чупраков
Date 2011-02-01.17:41:06
SpamBayes Score 1.8731683e-12
Marked as misclassified No
Message-id <1296582069.56.0.625314817916.issue11091@psf.upfronthosting.co.za>
In-reply-to
Content
import pkg_resources change path of already imported module
this break google appengine because It use "google.__file__" to determine sdk directory.

Ubuntu 10.10
~/lib/google_appengine$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from appcfg import fix_sys_path
>>> fix_sys_path()
>>> import google
>>> google
<module 'google' from '/home/schuprakov/lib/google_appengine/google/__init__.pyc'>
>>> import pkg_resources
>>> google
<module 'google' from '/usr/lib/pymodules/python2.6/google/__init__.pyc'>
>>> 


ls /usr/lib/pymodules/python2.6/google/
__init__.py  __init__.pyc  protobuf
History
Date User Action Args
2011-02-01 17:41:09Сергей.Чупраковsetrecipients: + Сергей.Чупраков
2011-02-01 17:41:09Сергей.Чупраковsetmessageid: <1296582069.56.0.625314817916.issue11091@psf.upfronthosting.co.za>
2011-02-01 17:41:06Сергей.Чупраковlinkissue11091 messages
2011-02-01 17:41:06Сергей.Чупраковcreate