I'm trying to use execfile()
function to use a file as config file. The file has only a bunch of variables and values. But when I'm trying to use it in my code, it throws IOError: [Errno 2] No such file or directory
This is my code:
dictionary = {}
execfile("myConfig.cfg", dictionary)