Spaces:
Running
on
Zero
Running
on
Zero
File size: 233 Bytes
3040ac4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import os
import sys
from .. import logger
def do_system(cmd, verbose=False):
if verbose:
logger.info(f"Run cmd: `{cmd}`.")
err = os.system(cmd)
if err:
logger.info("Run cmd err.")
sys.exit(err)
|