# load parameters file
yml = yaml.load(open(sys.argv[1]))
# imports
for pkg, functions in yml['imports'].iteritems():
stri = 'from ' + pkg + ' import ' + ','.join(functions)
exec(stri)
for the above code i get an error
IndexError: list index out of range
in line 2..can anyone help me out ?
import sys
andimport yaml
before the first command.interitems()
is for Python2, you have a Python3 tag