Using Import for Reading Configuration Files script allows you to read Python-based configuration files that are specified at runtime.
Reading configuration files is a common activity in scientific programming. Engineers typically create extensive config file reading libraries for handling this task.
Often there are a number of alternative configuration files that are appropriate for a single application. In order to avoid changing the import declaration, the above paradigm can be used at runtime.
Using Python scripts to store configuration information is a powerful and simple technique that can support documentation through comments, parameter checking as well as the creation of derived variables. In systems where other programming languages are required, the config file information stored in Python files can be converted to custom configuration files for system applications.