misc: get rid of SimpleNamespace uses
This commit is contained in:
parent
2a9fd54c12
commit
c0bbb4eaf2
2 changed files with 11 additions and 16 deletions
|
@ -7,10 +7,9 @@ Usage:
|
|||
|
||||
After that, you can set config attributes:
|
||||
|
||||
from types import SimpleNamespace
|
||||
config.twitter = SimpleNamespace(
|
||||
export_path='/path/to/twitter/exports',
|
||||
)
|
||||
class user_config:
|
||||
export_path = '/path/to/twitter/exports'
|
||||
config.twitter = user_config
|
||||
"""
|
||||
# todo why do we bring this into scope? don't remember..
|
||||
import my.config as config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue