| 1234567891011121314 |
- """Run the recovered editor against the project resources, backing up map.json."""
- from pathlib import Path
- import os
- import runpy
- import sys
- HERE = Path(__file__).resolve().parent
- ROOT = HERE.parent
- if __name__ == "__main__":
- sys.path.insert(0, str(ROOT / ".codex_build" / "map_editor_runtime"))
- sys.path.insert(0, str(HERE / "source"))
- os.chdir(str(ROOT))
- runpy.run_path(str(HERE / "source" / "main.py"), run_name="__main__")
|