更改引入路径
This commit is contained in:
parent
8c1bf9a29c
commit
72da394762
|
|
@ -1,6 +1,12 @@
|
|||
import sys
|
||||
import os
|
||||
curPath = os.path.abspath(os.path.dirname(__file__))
|
||||
rootPath = os.path.split(curPath)[0]
|
||||
sys.path.append(rootPath)
|
||||
|
||||
import warnings
|
||||
from datetime import datetime
|
||||
from ..utils import get_conn, get_month_date
|
||||
from utils import get_conn, get_month_date
|
||||
warnings.filterwarnings("ignore")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,15 @@
|
|||
import sys
|
||||
import os
|
||||
curPath = os.path.abspath(os.path.dirname(__file__))
|
||||
rootPath = os.path.split(curPath)[0]
|
||||
sys.path.append(rootPath)
|
||||
|
||||
import warnings
|
||||
import pandas as pd
|
||||
from datetime import datetime
|
||||
from sqlalchemy import create_engine
|
||||
from ..utils import get_month_date
|
||||
from ..config import host, port, user, passwd, database
|
||||
from utils import get_month_date
|
||||
from config import host, port, user, passwd, database
|
||||
warnings.filterwarnings("ignore")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
import sys
|
||||
import os
|
||||
curPath = os.path.abspath(os.path.dirname(__file__))
|
||||
rootPath = os.path.split(curPath)[0]
|
||||
sys.path.append(rootPath)
|
||||
|
||||
from generate_history_data import generate_history_data
|
||||
from generate_statistics_data import generate_statistics_data
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue