Skip to content

Commit b2cef0f

Browse files
committed
don't set VerboseFlag, log.python.level, python.WarnOptions, python.AlwaysRunExcepthook when creating ctx in GraalPyResources
1 parent f2c2f39 commit b2cef0f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding/utils/GraalPyResources.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,6 @@ private static Context.Builder createContextBuilder() {
345345
option("python.PosixModuleBackend", "java").
346346
// equivalent to the Python -B flag
347347
option("python.DontWriteBytecodeFlag", "true").
348-
// equivalent to the Python -v flag
349-
option("python.VerboseFlag", System.getenv("PYTHONVERBOSE") != null ? "true" : "false").
350-
// log level
351-
option("log.python.level", System.getenv("PYTHONVERBOSE") != null ? "FINE" : "SEVERE").
352-
// equivalent to setting the PYTHONWARNINGS environment variable
353-
option("python.WarnOptions", System.getenv("PYTHONWARNINGS") == null ? "" : System.getenv("PYTHONWARNINGS")).
354-
// print Python exceptions directly
355-
option("python.AlwaysRunExcepthook", "true").
356348
// Force to automatically import site.py module, to make Python packages
357349
// available
358350
option("python.ForceImportSite", "true").

0 commit comments

Comments
 (0)