File size: 392 Bytes
0c6c82c
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import annotations

import shutil
from pathlib import Path

ROOT = Path(__file__).resolve().parents[1]
SRC = ROOT / "src" / "inferscale"
DEST = ROOT / "py" / "inferscale"

if DEST.exists():
    shutil.rmtree(DEST)
DEST.parent.mkdir(parents=True, exist_ok=True)
shutil.copytree(SRC, DEST, ignore=shutil.ignore_patterns("__pycache__", "*.pyc"))
print(f"Synced {SRC} -> {DEST}")