In Unix we have a SOURCE command that can load a text file inside the shell script and all those parameters inside the text file is available as variables inside the script. Do we have an equivalent to that in python ? I need to load a properties file from the edge node to the .py script and based on the values take decisions inside the .py script.
Sample job.properties file in edge node is below.
databaseName=employee
hdfspath=/tenancy/ida/data
....
I need to load this job.properties file inside the .py script so that i need not pass these as command line arguments. Kindly advise