File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
graalpython/lib-graalpython/modules/standalone Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 61
61
import java .util .zip .ZipEntry ;
62
62
import java .util .zip .ZipInputStream ;
63
63
64
+ import org .graalvm .nativeimage .ImageInfo ;
64
65
import org .graalvm .polyglot .Context ;
65
66
import org .graalvm .polyglot .PolyglotException ;
66
67
import org .graalvm .polyglot .Source ;
@@ -103,6 +104,9 @@ public static void main(String[] args) throws IOException {
103
104
.option ("python.InputFilePath" , PROJ_PREFIX )
104
105
.option ("python.PythonHome" , HOME_PREFIX )
105
106
.option ("python.CheckHashPycsMode" , "never" );
107
+ if (ImageInfo .inImageRuntimeCode ()) {
108
+ builder .option ("engine.WarnInterpreterOnly" , "false" );
109
+ }
106
110
try (var context = builder .build ()) {
107
111
try {
108
112
var src = Source .newBuilder ("python" , "__graalpython__.run_path()" , "<internal>" ).internal (true ).build ();
You can’t perform that action at this time.
0 commit comments