Richard Oudkerk added the comment:

So there are really two situations:

1) The __main__ module *should not* be imported.  This is the case if you use 
__main__.py in a package or if you use nose to call test_main().

This should really be detected in get_preparation_data() in the parent process 
so that import_main_path() does not get called in the child process.

2) The __main__ module *should* be imported but it does not have a .py 
extension.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19946>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to