From 534af4f017b37711bbe2c081338c1ecbb429f8cc Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 5 Nov 2024 01:39:21 +0800 Subject: [PATCH] Update index_php_yum.py --- plugins/php-yum/index_php_yum.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugins/php-yum/index_php_yum.py b/plugins/php-yum/index_php_yum.py index 5a421e423..1a77fb329 100755 --- a/plugins/php-yum/index_php_yum.py +++ b/plugins/php-yum/index_php_yum.py @@ -17,12 +17,6 @@ try: except Exception as e: import core.mw as mw -if mw.isAppleSystem(): - cmd = 'ls /usr/local/lib/ | grep python | cut -d \\ -f 1 | awk \'END {print}\'' - info = mw.execShell(cmd) - p = "/usr/local/lib/" + info[0].strip() + "/site-packages" - sys.path.append(p) - app_debug = False if mw.isAppleSystem(): app_debug = True