File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66if os .name == 'nt' :
77 from pywinauto import Desktop
88 from pywinauto .findwindows import ElementNotFoundError
9+ windows = Desktop (backend = "uia" ).windows ()
910elif sys .platform == 'darwin' :
1011 import AppKit
1112
@@ -118,15 +119,14 @@ def _update_excluded_apps(self):
118119 pass
119120
120121 #print(f"\nExcluded app PIDs: {EXCLUDED_APP_PIDS}") # Debugging line
121- # print(f"New exlusions: {i}")
122+ print (f"New exlusions: { i } " )
122123 data = {'excluded_app_pids' : EXCLUDED_APP_PIDS }
123124 write_file (apps_file (), data )
124125
125126 def _has_gui (self , process_id ):
126127 if os .name == 'nt' :
127128 try :
128129 # Enumerate all top-level windows
129- windows = Desktop (backend = "uia" ).windows ()
130130 for win in windows :
131131 if win .process_id () == process_id :
132132 # Found a visible window for this process
You can’t perform that action at this time.
0 commit comments