Files
DOLPHIN/prod/ops/launch_paper_portfolio.py

12 lines
407 B
Python
Raw Normal View History

#!/usr/bin/env python3
"""Wrapper for launch_paper_portfolio.py - now located in prod/ directory."""
import os
import sys
from pathlib import Path
# Run the main file with proper __file__ context
main_file = Path(__file__).parent.parent / "launch_paper_portfolio.py"
os.chdir(main_file.parent)
sys.argv[0] = str(main_file)
exec(open(main_file).read(), {'__file__': str(main_file), '__name__': '__main__'})