Skip to content

Instantly share code, notes, and snippets.

@j-faria
Created September 6, 2017 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j-faria/4cf17d6168a3c8b87ee0d15c25db09bc to your computer and use it in GitHub Desktop.
Save j-faria/4cf17d6168a3c8b87ee0d15c25db09bc to your computer and use it in GitHub Desktop.
re-import everything at any stage
def develop():
import reimport, os
mod = reimport.modified()
try:
mod.remove('__main__')
except ValueError:
pass
reimport.reimport(*mod)
print 'Done re-importing'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment