mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-07 20:15:48 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user