Auxiliaries & Utilities¶
- File location
Bundled implementation:
source/server/python/util.pyCluster implementation:
cluster/daemon/python/util.py
-
@utils.suppress¶ A decorator that suppresses all exceptions.
-
utils.file_lock(file: str)¶ A context lock for file modification with a file system lock.
- Parameters
file (str) – Filename to be locked in the context.
-
utils.temp_env(env: Dict[str, Any])¶ A context for temporarily change the current
os.environ.- Parameters
env (Dict[str, Any]) – Environment variables.