diff --git a/scienceworld/scienceworld.jar b/scienceworld/scienceworld.jar index 706b7e4..310add3 100644 Binary files a/scienceworld/scienceworld.jar and b/scienceworld/scienceworld.jar differ diff --git a/simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala b/simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala index 313bbeb..1fb076f 100644 --- a/simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala +++ b/simulator/src/main/scala/scienceworld/runtime/pythonapi/PythonInterface.scala @@ -1,6 +1,6 @@ package scienceworld.runtime.pythonapi -import java.io.PrintWriter +import java.io.{File, FileOutputStream,PrintWriter} import main.scala.scienceworld.runtime.SimplifierProcessor import scienceworld.environments.EnvironmentMaker @@ -331,7 +331,8 @@ class PythonInterface() { val objTree = agentInterface.get.universe.toJSON() if (path == "") return objTree - val pw = new PrintWriter(path) + val f = new File(path); + var pw = new PrintWriter(new FileOutputStream(f)); pw.print(objTree) pw.close() return ""