mirror of
https://github.com/cottongin/cardputerzero-sync.git
synced 2026-11-20 14:44:47 -06:00
24 lines
518 B
Plaintext
24 lines
518 B
Plaintext
|
|
#!/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:]))
|