R. David Murray added the comment: __file__ is absolute for imports, yes. I didn't check co_filename, maybe that needs to be fixed too. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue15931> _______________________________________