23 lines
692 B
Python
23 lines
692 B
Python
#!/usr/bin/env python3
|
|
"""PPT Master - SVG to PPTX Tool (thin wrapper).
|
|
|
|
Delegates to the svg_to_pptx package. Kept for CLI backward compatibility:
|
|
python3 scripts/svg_to_pptx.py <project_path> -s final
|
|
"""
|
|
|
|
import sys
|
|
try: # zcbot: Windows GBK 控制台兼容,避免 emoji/© 等触发 UnicodeEncodeError
|
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
|
sys.stderr.reconfigure(encoding="utf-8", errors="replace")
|
|
except Exception:
|
|
pass
|
|
from pathlib import Path
|
|
|
|
# Ensure the scripts directory is on sys.path so the package can be found
|
|
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
|
|
from svg_to_pptx import main
|
|
|
|
if __name__ == '__main__':
|
|
main()
|