Skip to content

Commit

Permalink
set process title
Browse files Browse the repository at this point in the history
  • Loading branch information
wade ~ Pack3tL0ss committed Jul 19, 2023
1 parent e995dab commit 6290565
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/consolepi-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@
to ensure the remote is reachable and that the data is current.
'''
import sys

import setproctitle
import uvicorn # NoQA
from rich.traceback import install

sys.path.insert(0, '/etc/ConsolePi/src/pypkg')
from consolepi import config, log # NoQA
from consolepi.consolepi import ConsolePi # NoQA
from consolepi import config, log # type: ignore # NoQA
from consolepi.consolepi import ConsolePi # type: ignore # NoQA
from fastapi import FastAPI # NoQA
from pydantic import BaseModel # NoQA
from time import time # NoQA
from starlette.requests import Request # NoQA
import uvicorn # NoQA

install(show_locals=True)

setproctitle.setproctitle("consolepi-api")


cpi = ConsolePi()
Expand Down

0 comments on commit 6290565

Please sign in to comment.