Thursday, August 11, 2016

Python NameError: name 'execfile' is not defined

change
execfile("config.py", config)
to
exec(open("config.py").read(), config)

No comments:

Post a Comment