/FileExtraction/Java_unseen/OE-FET_JISA/src/jisa/PythonScript.java
package jisa;

import org.python.util.PythonInterpreter;

import java.io.InputStream;

public class PythonScript {

    private final InputStream       stream;
    private final PythonInterpreter interpreter;

    public PythonScript(String fileName) {
        interpreter = new PythonInterpreter();
        stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName);
    }

    public void run() {
        interpreter.execfile(stream);
    }

}
