PyOpenWorm.configure module¶
-
exception
PyOpenWorm.configure.BadConf[source]¶ Bases:
exceptions.ExceptionSpecial exception subclass for alerting the user to a bad configuration
-
class
PyOpenWorm.configure.ConfigValue[source]¶ Bases:
objectA value to be configured. Base class intended to be subclassed, as its only method is not implemented
-
class
PyOpenWorm.configure.Configure(**initial_values)[source]¶ Bases:
objectA simple configuration object. Enables setting and getting key-value pairs
-
copy(other)[source]¶ Copy this configuration into a different object.
Parameters: other – A different configuration object to copy the configuration from this object into Returns:
-
get(pname, default=<object object>)[source]¶ Get some parameter value out by asking for a key
Parameters: - pname – they key of the value you want to return.
- default – True if you want the default value, False if you don’t (default)
Returns: The value corresponding to the key in pname
-