Gracias, ahora todo claro
-- 
Ing.Gustavo Hernández Delgado   
Esp. "B" en Ciencias Informáticas
DTI Granma
tel.(23)42-0668


El jue, 24-06-2010 a las 23:48 +0200, Jesus Cea escribió:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 24/06/10 21:36, Gustavo Hernández wrote:
> > Tengo un una aplicación con varios programas, el problema es que no me
> > genera el programa principal con la extensión pyc o pyo, el resto de los
> > programas los genera bien. La aplicación ejecuta sin problemas. Alguna
> > idea?
> 
> Los .pyc/.pyo se generan cuando se hace un "import". Si nadie hace un
> "import" del módulo principal, no se generará su pyc/pyo.
> 
> Dicho ésto, échale un ojo al módulo "py_compile":
> <http://docs.python.org/library/py_compile.html>: "When this module is
> run as a script, the main() is used to compile all the files named on
> the command line. The exit status is nonzero if one of the files could
> not be compiled."
> 
> También <http://docs.python.org/library/compileall.html#module-compileall>.
> 
> - -- 
> Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
> j...@jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
> jabber / xmpp:j...@jabber.org         _/_/    _/_/          _/_/_/_/_/
> .                              _/_/  _/_/    _/_/          _/_/  _/_/
> "Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
> "My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
> "El amor es poner tu felicidad en la felicidad de otro" - Leibniz
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iQCVAwUBTCPSqZlgi5GaxT1NAQKmyQP6A01iGn+IqnBCIzrBRWtyyhd6iQFiRqyw
> WIbyVwcxCUNV4EFMjffkDNlVfZwzYce8CWxUmThpGqyr5qANDMlzGi1SlLo358zd
> kBDsXuUPHEbkoy8n36bmsRittK3stP9aECG/uCS3oH6dRaajeN1uojTqnGf9BnlR
> Uj6nts2BqV4=
> =KAOf
> -----END PGP SIGNATURE-----
> _______________________________________________
> Python-es mailing list
> Python-es@python.org
> http://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
> --- This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE 
> running at host imx3.etecsa.cu Visit our web-site: 
> <http://www.kaspersky.com>, <http://www.viruslist.com>
--- 
This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at 
host imx3.etecsa.cu
Visit our web-site: <http://www.kaspersky.com>, <http://www.viruslist.com>
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a