From 75771f488a4a5457213f1d94f1890c2171f51a98 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 10 Apr 2022 22:57:23 +0800 Subject: [PATCH] Update index.py --- plugins/gogs/index.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/gogs/index.py b/plugins/gogs/index.py index e1ccc26dd..9bfc0b2a7 100755 --- a/plugins/gogs/index.py +++ b/plugins/gogs/index.py @@ -7,15 +7,16 @@ import sys import re +sys.path.append(os.getcwd() + "/class/core") +import mw + + 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) import psutil -sys.path.append(os.getcwd() + "/class/core") -import mw - app_debug = False if mw.isAppleSystem():