From ef36693f175ddc41a7e48c7de42a92dad6e96666 Mon Sep 17 00:00:00 2001 From: Ethan Chan Date: Thu, 23 Jan 2025 14:06:06 -0800 Subject: [PATCH] Fix dynamic variable assignment for pylint --- src/dieknow.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/dieknow.py b/src/dieknow.py index db6808d..c547684 100644 --- a/src/dieknow.py +++ b/src/dieknow.py @@ -1,6 +1,9 @@ """DieKnow API. """ +__all__ = [] + + import ctypes try: from ctypes import wintypes @@ -73,23 +76,9 @@ for func_name in dir(lib): if not func_name.startswith("_"): globals()[func_name] = getattr(lib, func_name) + __all__.append(func_name) folder_path = lib.get_folder_path() -#get_kill_method = lib.get_kill_method -#set_kill_method = lib.set_kill_method - -#validate = lib.validate -# -#start_monitoring = lib.start_monitoring -#stop_monitoring = lib.stop_monitoring -#monitor_executables = lib.monitor_executables -#get_killed_count = lib.get_killed_count -#close_application_by_exe = lib.close_application_by_exe -#get_executables_in_folder = lib.get_executables_in_folder -#is_running = lib.is_running -#is_monitoring = lib.is_monitoring -#bsod = lib.bsod -#dialog = lib.dialog del func_name