Duplicated from Realcat/image-matching-webui
9223079
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os import logging logger = logging.getLogger(__name__) def do_system(cmd, verbose=False): if verbose: logger.info(f"Run cmd: `{cmd}`.") err = os.system(cmd) if err: logger.info(f"Run cmd err.") sys.exit(err)