diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-06 13:19:26 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-11-21 17:05:26 +0100 |
commit | c4eb5d165a00fbe7e5ec2e9a1e7f2123ce09bcd5 (patch) | |
tree | 7a143466afd4c5d9ced5a4da0ef0fd6616dd6dc9 /cli/cli.py | |
parent | 10a3897f92ee058155987cea23eec28b28377d4b (diff) |
ogcli: move configuration data into a different file
Move the configuration into its own file so it is easier to access
from multiple files.
Diffstat (limited to 'cli/cli.py')
-rw-r--r-- | cli/cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,6 +20,7 @@ from cli.objects.center import OgCenter from cli.objects.room import OgRoom from cli.objects.folder import OgFolder from cli.objects.session import OgSession +from cli.config import cfg import argparse import requests import sys @@ -77,7 +78,7 @@ class OgREST(): class OgCLI(): - def __init__(self, cfg): + def __init__(self): self.rest = OgREST(cfg['ip'], cfg['port'], cfg['api_token']) def list(self, args): |