Skip to content

Commit

Permalink
Update Linux.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkrzyskow authored Mar 5, 2024
1 parent 10262eb commit c1d84f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c1d84f4

Please sign in to comment.