Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66722
| From | Emile van Sebille <emile@fenx.com> |
|---|---|
| Subject | Re: Python 2.7 importing pyc files without py files |
| Date | 2014-02-19 14:25 -0800 |
| References | <8a6aff2d-777a-4f80-8c26-6d1a586e6c5c@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7166.1392848757.18130.python-list@python.org> (permalink) |
On 2/19/2014 2:03 PM, Mircescu Andrei wrote: > If there are only pyc files, the loading time of the application is > much more than if I have pyc and py files. It is behind with 2 > minutes more than if it had py files You may get some clues by starting python as /path/to/python/python2.7 -vv which will provide the details of attempts to import: [root@vsds4 log]# python2.7 -vv # installing zipimport hook import zipimport # builtin # installed zipimport hook # trying /usr/local/lib/python2.7/site.so # trying /usr/local/lib/python2.7/sitemodule.so # trying /usr/local/lib/python2.7/site.py # /usr/local/lib/python2.7/site.pyc matches /usr/local/lib/python2.7/site.py import site # precompiled from /usr/local/lib/python2.7/site.pyc # trying /usr/local/lib/python2.7/os.so # trying /usr/local/lib/python2.7/osmodule.so # trying /usr/local/lib/python2.7/os.py # /usr/local/lib/python2.7/os.pyc matches /usr/local/lib/python2.7/os.py import os # precompiled from /usr/local/lib/python2.7/os.pyc ... HTH, Emile
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python 2.7 importing pyc files without py files Mircescu Andrei <mircescu.andrei@gmail.com> - 2014-02-19 14:03 -0800
Re: Python 2.7 importing pyc files without py files Emile van Sebille <emile@fenx.com> - 2014-02-19 14:25 -0800
Re: Python 2.7 importing pyc files without py files Mircescu Andrei <mircescu.andrei@gmail.com> - 2014-02-20 05:36 -0800
Re: Python 2.7 importing pyc files without py files Terry Reedy <tjreedy@udel.edu> - 2014-02-19 17:26 -0500
csiph-web