I am a beginner in Python. I want to source the file which has a variable value. I am sourcing the variable value using command line argument option. I want to use this variable as a path parameter to source my file. I am saying it to the variable. Below is the code I am trying.
folder_name = 'abc'
execfile("/a/b/c/folder_name")
and I am expecting it will take the value of folder_name as abc and execute the file as
execfile("/a/b/c/abc")
execfile("/a/b/c/{}".format(folder_name))