13 lines
260 B
Python
13 lines
260 B
Python
|
import os
|
||
|
import asyncio
|
||
|
|
||
|
from sqlor.dbpools import DBPools
|
||
|
from appPublic.jsonConfig import getConfig
|
||
|
|
||
|
def run(test_coro):
|
||
|
os.chdir('/Users/ymq/py/sage')
|
||
|
conf = getConfig()
|
||
|
DBPools(conf.databases)
|
||
|
asyncio.get_event_loop().run_until_complete(test_coro())
|
||
|
|