OoO Pendant le journal télévisé du lundi 25 août 2008, vers 20:16, je
disais:
> This path does not exist. This explains why the first import
> fails. However, I don't have any clue why Python thinks that the path of
> the module is /usr/lib/python2.5/site-packages/recaptcha instead of
> /var/lib/python-support/python2.5/recaptcha.
In /usr/lib/python2.5/site-packages/python-support.pth, I have this:
import sys,new,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('recaptcha',)); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault('recaptcha',new.module('recaptcha')); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)
/var/lib/python-support/python2.5/import sys,new,os; p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('recaptcha',)); ie = os.path.exists(os.path.join(p,'__init__.py')); m = not ie and sys.modules.setdefault('recaptcha',new.module('recaptcha')); mp = (m or []) and m.__dict__.setdefault('__path__',[]); (p not in mp) and mp.append(p)
This snippet can be found in recaptcha_client-1.0.2-py2.5-nspkg.pth that
is generated at compile time. I don't know why this is
generated. Moreover, this file seems a bit useless. What is the cleanest
way to get rid of it and all the egg stuff?
Thanks.
--
Arrêtez de poster des AAD, cela encombre le forum.
-+- EN in: Guide du Cabaliste Usenet - fufer en nettoyant -+-
Attachment:
pgpZvdAYZCCmL.pgp
Description: PGP signature