If you import a module, importing it again will not load the actual file again, because Python remembered that it was imported earlier.
You can do a dirty trick to force a reload:
Import sys
sys.modules.pop(‘main’, None)
import main
But I would in general discourage this. This is essentially why there is a “run as script”.
- Almar
--
You received this message because you are subscribed to the Google Groups "Interactive Editor for Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iep_+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.