Last active
April 27, 2024 22:31
-
-
Save Ichinga-Samuel/463126bc075942694eb482561e999325 to your computer and use it in GitHub Desktop.
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
from aiomql import Config, Account | |
config = Config() | |
print(config.path, config.login, config.password) | |
# load the config from a file different file. | |
# remember to pass reload=True to reload the config file | |
Config(filename='config.json', reload=True) | |
# a config instance is defined on most classes in the library, so you can access the config from any class | |
config = Account().config | |
print(config.path, config.login, config.password, config.filename, config.server, config.foo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment