VibeGame-8B / code /scripts /extract_project.py
khursheed's picture
Release pipeline source, tests, notebook, and licenses
ae36cfb verified
Raw History Blame Contribute Delete
615 Bytes
#!/usr/bin/env python3
"""Extract a strict generated file map into an empty project directory."""
import argparse
from pathlib import Path
import sys
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'src'))
from vibegame.project import parse_project, write_project
if __name__ == '__main__':
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('input', type=Path)
parser.add_argument('--output', type=Path, required=True)
args = parser.parse_args()
target = write_project(parse_project(args.input.read_text()), args.output)
print(target / 'project.godot')