[M] Move create_config to a separate file
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user