From 69918b4be57a6cc1f5ced7efd579f1109d541a6f Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Wed, 4 Jun 2025 21:04:24 +0800 Subject: [PATCH] Add standalone entry point for tzst Created a new main.py file as the standalone entry point for tzst, intended for PyInstaller builds. This script sets up the Python path and invokes the CLI main function. --- main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..cffccb4 --- /dev/null +++ b/main.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python3 +"""Standalone entry point for tzst - used for PyInstaller builds.""" + +import os +import sys + +# Add the src directory to the Python path +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) + +from tzst.cli import main + +if __name__ == "__main__": + sys.exit(main())