mirror of
https://github.com/MinaSaad1/pbi-cli
synced 2026-04-21 13:37:19 +00:00
fix: apply ruff format to desktop_reload.py
This commit is contained in:
parent
849d309228
commit
e677b018cf
1 changed files with 1 additions and 3 deletions
|
|
@ -108,9 +108,7 @@ def _find_pbi_window_pywin32() -> int:
|
|||
# name (e.g. "Sales_Demo") -- fall back to matching by process name.
|
||||
try:
|
||||
_, pid = win32process.GetWindowThreadProcessId(hwnd)
|
||||
h_proc = win32api.OpenProcess(
|
||||
win32con.PROCESS_QUERY_LIMITED_INFORMATION, False, pid
|
||||
)
|
||||
h_proc = win32api.OpenProcess(win32con.PROCESS_QUERY_LIMITED_INFORMATION, False, pid)
|
||||
exe_path = win32process.GetModuleFileNameEx(h_proc, 0)
|
||||
win32api.CloseHandle(h_proc)
|
||||
if exe_path.lower().endswith("pbidesktop.exe"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue