def getFileUsed(): """ Determine which NuPIC configuration file is being used and returns the name of the configuration file it is using. Either DEFAULT_CONFIG or USER_CONFIG. """ # output will be {} if the file passed into Configuration._readConfigFile # can not be found in the standard paths returned by # Configuration._getConfigPaths. output = Configuration._readConfigFile(USER_CONFIG) #pylint: disable=protected-access if output != {}: return USER_CONFIG return DEFAULT_CONFIG
def getFileUsed(): """ Determine which NuPIC configuration file is being used and returns the name of the configuration file it is using. Either DEFAULT_CONFIG or USER_CONFIG. """ # output will be {} if the file passed into Configuration._readConfigFile # can not be found in the standard paths returned by # Configuration._getConfigPaths. output = Configuration._readConfigFile(USER_CONFIG) #pylint: disable=protected-access if output != {}: return USER_CONFIG return DEFAULT_CONFIG