how to change code in runtime after convert to executable file
Ho Yeung Lee
jobmattcon at gmail.com
Wed May 31 13:25:32 EDT 2017
if keep module1.py code together with mainmodule1.exe, how to convert to executable file with py2exe in this case?
after tried, it can run executable file with source code module1.py
but the modified date can not be changed even if content of module1.py changed
then i delete the file and change in another directory, then copy to the directory with executable file, it still can not reload the module
mainmodule1.py
import module1
#from module1 import func1
while 1:
module1.func1()
reload(module1)
module1.py
def func1():
print("version 1")
More information about the Python-list
mailing list