Created
September 6, 2017 13:39
-
-
Save j-faria/4cf17d6168a3c8b87ee0d15c25db09bc to your computer and use it in GitHub Desktop.
re-import everything at any stage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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