mirror of
https://github.com/cottongin/cardputerzero-sync.git
synced 2026-11-20 14:44:47 -06:00
feat(mac-receiver): add cp0-mac-sync CLI and LaunchAgent management
This commit is contained in:
23
mac-receiver/bin/cp0-mac-sync
Executable file
23
mac-receiver/bin/cp0-mac-sync
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
"""CLI entrypoint for CardputerZero Mac photo sync management."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def _ensure_package_on_path() -> None:
|
||||
package_root = str(Path(os.path.realpath(__file__)).resolve().parents[1])
|
||||
if package_root not in sys.path:
|
||||
sys.path.insert(0, package_root)
|
||||
|
||||
|
||||
_ensure_package_on_path()
|
||||
|
||||
from cp0_mac_receiver.cli import run_cli # noqa: E402
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(run_cli(sys.argv[1:]))
|
||||
Reference in New Issue
Block a user