Merge pull request !465 from 蒋宏博/master
This commit is contained in:
opengauss-bot 2023-05-06 02:05:58 +00:00 committed by Gitee
commit 836fc03e35
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,8 @@ sys.path.insert(0, localDirPath + "/../../../lib")
try:
import psutil
except ImportError as e:
if not bool(os.listdir(localDirPath + "/../../../lib")):
raise
# mv psutil mode .so file by python version
pythonVer = str(sys.version_info[0]) + '.' + str(sys.version_info[1])
psutilLinux = os.path.join(localDirPath,

View File

@ -63,6 +63,8 @@ sys.path.insert(0, localDirPath + "/../../../lib")
try:
import psutil
except ImportError as e:
if not bool(os.listdir(localDirPath + "/../../../lib")):
raise
# mv psutil mode .so file by python version
pythonVer = str(sys.version_info[0]) + '.' + str(sys.version_info[1])
psutilLinux = os.path.join(localDirPath,

View File

@ -41,6 +41,7 @@ from gspylib.common.Constants import Constants
try:
import paramiko
except ImportError as ex:
print(ex)
try:
local_path = os.path.dirname(os.path.realpath(__file__))
clib_path = os.path.realpath(os.path.join(local_path, "../../gspylib/clib/"))