我正在尝试通过 python 文件配置 WAS 管理控制台属性,但出现以下错误:
WASX7017E: Exception received while running file "ConfigureWASMain.py"; exception information: com.ibm.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<string>", line 49, in ?
File "/opt/WebSphere7/64bit/optionalLibraries/jython/Lib/javaos.py", line 137, in __getitem__
File "/opt/WebSphere7/64bit/optionalLibraries/jython/Lib/UserDict.py", line 14, in __getitem__
KeyError: BASE_DIR
我的 python 文件有以下代码:
import os
import sys
from java.util import Hashtable
from java.util import Properties
from java.io import FileInputStream
sys.path.append(os.environ["BASE_DIR"]) //Line 49
有人请帮我解决这个错误。