me.fier.chroot/scripts/chroot/90_main.py

9 lines
130 B
Python
Raw Normal View History

2023-07-05 02:30:47 +00:00
import os
import shutil
chrootexe = shutil.which("chroot")
os.execv(chrootexe,[
chrootexe,
_chroot["dir"]
] + _chroot["args"]
)