Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reload module

from importlib import reload  # Python 3.4+
import foo

while True:
    # Do some things.
    if is_changed(foo):
        foo = reload(foo)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reload #module
ADD COMMENT
Topic
Name
7+3 =