[M] Move create_config to a separate file

This commit is contained in:
Hykilpikonna
2021-11-03 15:36:42 -04:00
parent c248e500a2
commit 102cad055e
2 changed files with 10 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
import os
import json5
import tweepy
from collect.utils import *
if __name__ == '__main__':
conf = load_config()
@@ -1,7 +1,6 @@
import os
import json5
import tweepy
def load_config() -> dict:
@@ -15,4 +14,3 @@ def load_config() -> dict:
return json5.load(f)
else:
return json5.loads(os.getenv('config'))