Show More
@@ -186,8 +186,8 b' class ModuleReloader(object):' | |||||
186 | if not hasattr(module, '__file__') or module.__file__ is None: |
|
186 | if not hasattr(module, '__file__') or module.__file__ is None: | |
187 | return None, None |
|
187 | return None, None | |
188 |
|
188 | |||
189 |
if getattr(module, '__name__', None) |
|
189 | if getattr(module, '__name__', None) in ['__mp_main__', '__main__']: | |
190 | # we cannot reload(__main__) |
|
190 | # we cannot reload(__main__) or reload(__mp_main__) | |
191 | return None, None |
|
191 | return None, None | |
192 |
|
192 | |||
193 | filename = module.__file__ |
|
193 | filename = module.__file__ |
General Comments 0
You need to be logged in to leave comments.
Login now