13 lines
374 B
Python
13 lines
374 B
Python
from dataclasses import dataclass
|
|
from typing import Final
|
|
import os
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class Constants:
|
|
|
|
TOR_BOOTSTRAP_TIMEOUT: Final[int] = int(os.environ.get('TOR_BOOTSTRAP_TIMEOUT', '90'))
|
|
|
|
TOR_CONTROL_SOCKET_FILENAME: Final[str] = 'tor.sock'
|
|
TOR_PROCESS_IDENTIFIER_FILENAME: Final[str] = 'tor.pid'
|
|
TOR_INSTANCE_LOCK_FILENAME: Final[str] = 'lock'
|