跟踪Python导入

跟踪Python导入,第1张

跟踪Python导入

使用以下命令启动python解释器

-v

$ python -v -m /usr/lib/python2.6/timeit.py# installing zipimport hookimport zipimport # builtin# installed zipimport hook# /usr/lib/python2.6/site.pyc matches /usr/lib/python2.6/site.pyimport site # precompiled from /usr/lib/python2.6/site.pyc# /usr/lib/python2.6/os.pyc matches /usr/lib/python2.6/os.pyimport os # precompiled from /usr/lib/python2.6/os.pycimport errno # builtinimport posix # builtin# /usr/lib/python2.6/posixpath.pyc matches /usr/lib/python2.6/posixpath.pyimport posixpath # precompiled from /usr/lib/python2.6/posixpath.pyc# /usr/lib/python2.6/stat.pyc matches /usr/lib/python2.6/stat.pyimport stat # precompiled from /usr/lib/python2.6/stat.pyc# /usr/lib/python2.6/genericpath.pyc matches /usr/lib/python2.6/genericpath.pyimport genericpath # precompiled from /usr/lib/python2.6/genericpath.pyc# /usr/lib/python2.6/warnings.pyc matches /usr/lib/python2.6/warnings.pyimport warnings # precompiled from /usr/lib/python2.6/warnings.pyc# /usr/lib/python2.6/linecache.pyc matches /usr/lib/python2.6/linecache.pyimport linecache # precompiled from /usr/lib/python2.6/linecache.pyc# /usr/lib/python2.6/types.pyc matches /usr/lib/python2.6/types.pyimport types # precompiled from /usr/lib/python2.6/types.pyc# /usr/lib/python2.6/UserDict.pyc matches /usr/lib/python2.6/UserDict.py...

然后只是grep您的旧模块



欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5643695.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存