-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make config an instance attribute of DTbot class
This change makes it easier to do runtime config changes, such as version & last updated changes for hot reload updates, by tying the config to the DTbot instance and letting it be overwritten at runtime. It also does away with the awful and barely understandable chain of imports of the DTbot.py file's config constant across files, sometimes directly, sometimes via other modules. (backported from v3)
- Loading branch information
1 parent
3b6dca7
commit 1d6ae19
Showing
7 changed files
with
170 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.