Author: Manuel Jacob <m...@manueljacob.de> Branch: py3.3 Changeset: r82190:4939f7202eaf Date: 2016-02-12 18:52 +0100 http://bitbucket.org/pypy/pypy/changeset/4939f7202eaf/
Log: Explicitly pass name to SourcelessFileLoader.load_module(). This is seemingly sometimes needed when running on top of CPython. diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py --- a/pypy/interpreter/app_main.py +++ b/pypy/interpreter/app_main.py @@ -676,7 +676,7 @@ filename = filename.lower() if filename.endswith('.pyc') or filename.endswith('.pyo'): loader = SourcelessFileLoader('__main__', filename) - args = (loader.load_module,) + args = (loader.load_module, loader.name) else: filename = sys.argv[0] for hook in sys.path_hooks: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit