18339543638 пре 3 година
родитељ
комит
1f002d4e94

+ 5 - 4
nb-service/web-service/src/main/java/com/nb/web/service/bus/hospital/script/PythonParse.java

@@ -27,6 +27,11 @@ public class PythonParse implements ScriptParse {
 
     static {
         //初始化python环境
+
+
+    }
+
+    public PythonParse() {
         PySystemState systemState = Py.getSystemState();
         Properties props = new Properties();
         props.setProperty("python.console.encoding", "UTF-8");
@@ -38,10 +43,6 @@ public class PythonParse implements ScriptParse {
         PythonInterpreter.initialize(preprops, props, new String[0]);
         PythonInterpreter.initialize(System.getProperties(), props, new String[] {});
         log.info("python path >>>>>>>>>>>>>>>>>:{}",systemState.path);
-
-    }
-
-    public PythonParse() {
         interpreter = new PythonInterpreter();
 
     }