mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 11:29:46 +03:00
22 lines
478 B
Python
22 lines
478 B
Python
# Copyright 2024 Caleb Connolly
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
"""Global runtime context"""
|
|
|
|
import pmb.config
|
|
from pathlib import Path
|
|
|
|
|
|
class Context():
|
|
details_to_stdout: bool
|
|
quiet: bool
|
|
command_timeout: float
|
|
sudo_timer: bool
|
|
log: Path
|
|
|
|
def __init__(self):
|
|
self.details_to_stdout = False
|
|
self.command_timeout = 0
|
|
self.sudo_timer = False
|
|
self.log = pmb.config.work / "log.txt"
|
|
self.quiet = False
|