!120 GPHOME获取不到导致非预期报错

Merge pull request !120 from Ricardo_Cui/master
This commit is contained in:
opengauss-bot
2021-04-30 10:21:46 +08:00
committed by Gitee

View File

@ -54,6 +54,8 @@ class OMCommand():
if os.getgid() != 0:
gp_home = DefaultValue.getEnv("GPHOME")
if not gp_home:
raise Exception(ErrorCode.GAUSS_518["GAUSS_51802"] % "GPHOME")
Current_Path = os.path.join(gp_home, "script/gspylib/common")
LocalScript = {