MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / resync_appdir

Function resync_appdir

scripts/update_installer.py:75–84  ·  view source on GitHub ↗
(advinst: Path)

Source from the content-addressed store, hash-verified

73
74
75def resync_appdir(advinst: Path) -> None:
76 if not DIST_TREE.exists():
77 sys.exit(
78 f"{DIST_TREE} not found. Run `pyinstaller packaging/windows/scenedetect.spec` first."
79 )
80 # /ResetSync errors out if APPDIR isn't already a synced folder
81 # (true on the first run); /NewSync will fail if it IS synced. So
82 # try the reset but tolerate failure, then sync.
83 run(advinst, "/ResetSync", "APPDIR", check=False)
84 run(advinst, "/NewSync", "APPDIR", str(DIST_TREE))
85
86
87def main() -> None:

Callers 1

mainFunction · 0.85

Calls 1

runFunction · 0.85

Tested by

no test coverage detected