更改引入路径

This commit is contained in:
crystal20277 2022-11-21 14:34:09 +08:00
parent 8c1bf9a29c
commit 72da394762
3 changed files with 21 additions and 3 deletions

View File

@ -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")

View File

@ -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")

View File

@ -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