def __init__(self): self.__has_mount_point = True; self.__instrument = config['default.instrument'].strip().upper() try: usersettings = Settings() # This will throw a missing config exception if no config file is available. self.__mountpoint = usersettings.get_named_setting("DataMountPoint") except KeyError: print "DataMountPoint is missing from the config.xml file." self.__has_mount_point = False;
def __init__(self): self.__has_mount_point = True self.__instrument = config['default.instrument'].strip().upper() try: usersettings = Settings() # This will throw a missing config exception if no config file is available. self.__mountpoint = usersettings.get_named_setting("DataMountPoint") except KeyError: print "DataMountPoint is missing from the config.xml file." self.__has_mount_point = False