Using ConfigParser inside Execute Python Script

September 23, 2015

Report Abuse
This experiment demonstrates how to read config files from a Python module that has been uploaded as a zip file.
Please see this thread on MSDN: https://social.msdn.microsoft.com/Forums/azure/en-US/6a229ccd-53a1-445f-bbd7-1121d358ba47/how-to-read-a-initializationconfiguration-file-in-python-script-ini-extension?forum=MachineLearning&prof=required This experiment demonstrates the change required in the Python module in order for it to be able to read an INI file in the same directory as the module. Since the INI file is not in the working directory of the Python interpreter, we need to specify the absolute path to it in order for ConfigParser to be able to read it.