Antoine Pitrou
Antoine Pitrou
`multiprocessing` always re-imports the main module in child processes. I'm not sure why that is, but there's probably a reason (it's been like that for as long as I remember).
No. However, you'll see that the main module is imported as `__mp_main__` in the child process, not as `__main__` (a `__main__` alias is created afterwards). For example, add this code...
@lwhite1 Do you want to take a look at this PR?
@zhztheplayer Would you like to update this based on review feedback from @lwhite1 ?
@lwhite1 Would you like to take this up?
Thanks @zhztheplayer !
@kou Can we get this merged quickly to resolve CI failures?
Sorry, I mean that merging this PR allows to fix AppVeyor, so we should do it quickly.
Unblocking AppVeyor would be nice. As for the real fix, there is now some hope that we move to C++17 soon.
@krcrouse Just a word to tell you that I hadn't a chance to take a look yet, but it's definitely on my TODO list (or may be switched to someone...