From 52f89da2829d92c868c32d707505b8ac1ba977b2 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Fri, 7 Feb 2025 16:40:00 +0700 Subject: [PATCH] Remove functionality to open folder --- Scripts/utils.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Scripts/utils.py b/Scripts/utils.py index cc66329..bc74a04 100755 --- a/Scripts/utils.py +++ b/Scripts/utils.py @@ -125,17 +125,6 @@ class Utils: def contains_any(self, data, search_item, start=0, end=None): return next((item for item in data[start:end] if item.lower() in search_item.lower()), None) - def open_folder(self, folder_path): - if os.name == 'posix': - if 'darwin' in os.uname().sysname.lower(): - subprocess.run(['open', folder_path]) - else: - subprocess.run(['xdg-open', folder_path]) - elif os.name == 'nt': - os.startfile(folder_path) - else: - raise NotImplementedError("This function is only supported on macOS, Windows, and Linux.") - def request_input(self, prompt="Press Enter to continue..."): try: user_response = input(prompt)