|
|
|
@ -49,9 +49,8 @@ def load_file_into_database(path_to_file, connection):
|
|
|
|
|
# 建数据库,处理数据入库
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
|
|
# 获取当前文件所在的目录
|
|
|
|
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
# 构造数据库文件的完整路径
|
|
|
|
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
db_file_path = os.path.join(current_dir, db_filename)
|
|
|
|
|
|
|
|
|
|
if os.path.exists(db_file_path):
|
|
|
|
|