[pypy-issue] [issue1259] builtin module __file__ attribute shows wrong path

Amaury Forgeot d Arc tracker at bugs.pypy.org
Mon Feb 11 10:22:30 CET 2013

Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:

sys is a builtin-module, so the path is computed at translation time.
In my case I see some buildbot working directory.
Maybe we should try to not leak this information and hack something like
sys.__file__ = "pypy/module/sys"

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list