mirror of
https://github.com/QuantEngines/fx_quant_engine.git
synced 2026-07-30 03:47:45 +00:00
Cleanup: remove embedded options project and adopt src layout for FX engine
This commit is contained in:
@@ -3,12 +3,18 @@ from __future__ import annotations
|
||||
import json
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
SRC = ROOT / "src"
|
||||
if str(SRC) not in sys.path:
|
||||
sys.path.insert(0, str(SRC))
|
||||
|
||||
from fx_quant_engine import FXQuantEngine
|
||||
|
||||
|
||||
def main() -> None:
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
root = ROOT
|
||||
engine = FXQuantEngine(config_dir=root / "config")
|
||||
|
||||
end = datetime.now(timezone.utc)
|
||||
|
||||
Reference in New Issue
Block a user