From 1911de75ec5d34b51b547d05e39fd91f51adb36e Mon Sep 17 00:00:00 2001 From: master3395 Date: Mon, 26 Jan 2026 03:19:01 +0100 Subject: [PATCH] fix(plugins): Remove duplicate os import in removeFiles() os is already imported at module level, removing duplicate import that was causing 'local variable os referenced before assignment' error --- pluginInstaller/pluginInstaller.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pluginInstaller/pluginInstaller.py b/pluginInstaller/pluginInstaller.py index fb3b83a75..c6f5739a6 100644 --- a/pluginInstaller/pluginInstaller.py +++ b/pluginInstaller/pluginInstaller.py @@ -288,7 +288,6 @@ class pluginInstaller: if os.path.exists(pluginPath): try: # Check if we're running as root - import os is_root = os.geteuid() == 0 if hasattr(os, 'geteuid') else False use_sudo = not is_root