richClubb / python-uds

A uds library for python
MIT License
99 stars 55 forks source link

Creation of config singleton #24

Closed richClubb closed 6 years ago

richClubb commented 6 years ago

Currently the configuration tool works for reading the default config but does not work for editing the parameters, this needs improvement

richClubb commented 6 years ago

Created a Config class rather than implementing a singleton. The general advice was that for this use case it is a bit of a hack. Provided an interface to that keyword arguments can be passed down to sub-functions to provide ability to configure the classes using either the package defaults, a user created config file or keyword arguments passed into the class constructors

merged with master