Get the config object for the global Application instance, if there is one otherwise return an empty config object
()
| 1122 | |
| 1123 | |
| 1124 | def get_config() -> Config: |
| 1125 | """Get the config object for the global Application instance, if there is one |
| 1126 | |
| 1127 | otherwise return an empty config object |
| 1128 | """ |
| 1129 | if Application.initialized(): |
| 1130 | return Application.instance().config |
| 1131 | else: |
| 1132 | return Config() |
| 1133 | |
| 1134 | |
| 1135 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…