chia-blockchain/chia/util/setproctitle.py

12 lines
241 B
Python

try:
import setproctitle as pysetproctitle
no_setproctitle = False
except Exception:
no_setproctitle = True
def setproctitle(ps_name: str) -> None:
if no_setproctitle is False:
pysetproctitle.setproctitle(ps_name)