File: meson-install-web.py

package info (click to toggle)
libvirt 7.0.0-3%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 145,532 kB
  • sloc: ansic: 502,645; xml: 180,512; python: 8,627; sh: 3,992; perl: 2,768; makefile: 509; javascript: 116; cpp: 22
file content (10 lines) | stat: -rwxr-xr-x 187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python3

import os
import shutil
import sys

for desc in sys.argv[1:]:
    inst = desc.split(':')
    os.makedirs(inst[1], exist_ok=True)
    shutil.copy(inst[0], inst[1])