So I have this file located in a specific directory.
Here I am trying to get access to my file:
public static void main(String[] args) {
try {
PythonInterpreter interpreter = new PythonInterpreter();
interpreter.execfile("C:/Users/schueler/Desktop/TestForPhyton/testPython.py");
} catch (Exception ex) {
System.out.println(""+ex);
}
}
I get this error:
IOError: (2, 'File not found - C:\\Users\\schueler\\Desktop\\TestForPhyton\\testPython.py (Das System kann die angegebene Datei nicht finden)')