签入版本
This commit is contained in:
@@ -9,10 +9,16 @@ from pathlib import Path
|
||||
|
||||
# scripts/ 下无 __init__.py,把 scripts 目录加进 sys.path 以便直接 import
|
||||
_SCRIPTS_DIR = Path(__file__).resolve().parents[3] / "scripts"
|
||||
if str(_SCRIPTS_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(_SCRIPTS_DIR))
|
||||
|
||||
import init_db # noqa: E402
|
||||
|
||||
def _setup_scripts_path():
|
||||
if str(_SCRIPTS_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(_SCRIPTS_DIR))
|
||||
|
||||
|
||||
_setup_scripts_path()
|
||||
|
||||
import init_db
|
||||
|
||||
|
||||
def test_oracle_sequence_sql():
|
||||
|
||||
Reference in New Issue
Block a user