aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config.py')
-rw-r--r--config.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/config.py b/config.py
new file mode 100644
index 0000000..d0dc061
--- /dev/null
+++ b/config.py
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+import json
+
+with open("config.json", "r", encoding="utf-8") as file:
+ config = json.load(file)
+
+
+class Config(object):
+ # connection arguments
+ HOST = config['host']
+ PORT = config['port']
+ USER = config['user']
+ PW = config['password']
+ SID = config['server_id']
+
+ # assignment settings
+ GID = config['gid']