We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b9972 commit 8ee5bacCopy full SHA for 8ee5bac
src/main/java/org/scijava/plugins/scripting/python/PythonScriptLanguage.java
@@ -29,6 +29,8 @@
29
30
package org.scijava.plugins.scripting.python;
31
32
+import java.util.Arrays;
33
+import java.util.List;
34
import javax.script.ScriptEngine;
35
36
import org.scijava.Priority;
@@ -45,7 +47,17 @@
45
47
*/
46
48
@Plugin(type = ScriptLanguage.class, name = "Python (scyjava)", priority = Priority.VERY_LOW)
49
public class PythonScriptLanguage extends AbstractScriptLanguage {
-
50
+
51
+ @Override
52
+ public String getEngineName() {
53
+ return "python";
54
+ }
55
56
57
+ public List<String> getExtensions() {
58
+ return Arrays.asList("py");
59
60
61
@Override
62
public ScriptEngine getScriptEngine() {
63
return new PythonScriptEngine(getContext());
0 commit comments