Curriculum Vitæ / Resume
cv.marc.beninca.link
1#! /usr/bin/env python3
2"""Build resume."""
3
4from os import sep
5from pathlib import Path
6
7from rwx import fs
8from rwx.ps import run
9
10if __name__ == "__main__":
11 root = Path(__file__).resolve().parent
12 root_input = root / "in"
13 root_output = root / "out"
14 web = root_output / "web"
15 fs.wipe(root_output)
16 fs.make_directory(web)
17 run(
18 "rsync",
19 "--archive",
20 "--partial",
21 "--progress",
22 "--verbose",
23 f"{root_input}{sep}",
24 f"{web}{sep}",
25 )
26 run(
27 "qrencode",
28 ("--background", "00000000"),
29 ("--foreground", "000000FF"),
30 ("--level", "L"),
31 ("--margin", "1"),
32 ("--read-from", str(root_input / "marc.beninca.vcf")),
33 ("--size", "4"),
34 ("-t", "SVG"),
35 ("--output", str(web / "img" / "marc.beninca.svg")),
36 )