Skip to content

Commit

Permalink
fix reload module
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Jul 9, 2016
1 parent e45d5d3 commit b812ab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions importloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
def load(name):
try:
obj = __import__(name)
reload(obj)
return obj
except:
pass

try:
import importlib
obj = importlib.__import__(name)
importlib.reload(obj)
return obj
except:
pass
Expand Down

0 comments on commit b812ab1

Please sign in to comment.