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