richClubb / python-uds

A uds library for python
MIT License
95 stars 54 forks source link

Creation of config singleton #24

Closed richClubb closed 5 years ago

richClubb commented 5 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 5 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