File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ public static void main(String[] args) {
5858 }
5959
6060 private static final String LANGUAGE_ID = "python" ;
61+ private static final String MIME_TYPE = "text/x-python" ;
6162
6263 private ArrayList <String > programArgs = null ;
6364 private String commandString = null ;
@@ -306,7 +307,7 @@ private void evalNonInteractive(Context context) throws IOException {
306307 src = Source .newBuilder (getLanguageId (), commandString , "<string>" ).build ();
307308 } else {
308309 assert inputFile != null ;
309- src = Source .newBuilder (getLanguageId (), new File (inputFile )).build ();
310+ src = Source .newBuilder (getLanguageId (), new File (inputFile )).mimeType ( MIME_TYPE ). build ();
310311 }
311312 context .eval (src );
312313 }
You can’t perform that action at this time.
0 commit comments