@Name: __parseConfig @Desc : Parses the configuration file passed and assigns the parsed configuration @Output : SUCCESS or FAILED
(self)
| 59 | self.__userLogFolderPath = user_logfolder_path |
| 60 | |
| 61 | def __parseConfig(self): |
| 62 | ''' |
| 63 | @Name: __parseConfig |
| 64 | @Desc : Parses the configuration file passed and assigns |
| 65 | the parsed configuration |
| 66 | @Output : SUCCESS or FAILED |
| 67 | ''' |
| 68 | try: |
| 69 | if not os.path.isfile(self.__configFile): |
| 70 | print("\n=== Marvin Parse Config Init Failed ===") |
| 71 | return FAILED |
| 72 | self.__parsedConfig = getSetupConfig(self.__configFile) |
| 73 | print("\n=== Marvin Parse Config Successful ===") |
| 74 | return SUCCESS |
| 75 | except Exception as e: |
| 76 | print("\nException Occurred Under __parseConfig : " \ |
| 77 | "%s" % GetDetailExceptionInfo(e)) |
| 78 | return FAILED |
| 79 | |
| 80 | def getParsedConfig(self): |
| 81 | return self.__parsedConfig |
no test coverage detected