me.fier.chroot/scripts/chroot/90_main.py
2023-07-05 04:30:47 +02:00

9 lines
130 B
Python

import os
import shutil
chrootexe = shutil.which("chroot")
os.execv(chrootexe,[
chrootexe,
_chroot["dir"]
] + _chroot["args"]
)