From c1d84f4ebb91d6e33dd6517ed98252ba94943435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Krzy=C5=9Bk=C3=B3w?= <34622465+kamilkrzyskow@users.noreply.github.com> Date: Tue, 5 Mar 2024 18:31:55 +0100 Subject: [PATCH] Update Linux.py --- Linux.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Linux.py b/Linux.py index 8b800e5..b713e34 100644 --- a/Linux.py +++ b/Linux.py @@ -23,8 +23,14 @@ def communicate(self, *args, **kwargs): print(f" Output is empty") return out, _ + def __getattr__(self, item): + att = super().__getattr__(item) + print("__getattr__:", att) + return att + def __get_attribute__(self, name_): att = super().__getattribute__(name_) + print("__getattribute__:", att) if name_ == "stdout": print("Subprocess output:") for line_ in att: