Mega Code Archive

 
Categories / Python Tutorial / Introduction
 

To reload the simple module, you would use the following

# C:\python\hello.py print "Hello, world!" # C:\testModule.py import sys sys.path.append('c:/python') import hello hello = reload(hello)