File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -395,8 +395,14 @@ protected void launch(Builder contextBuilder) {
395
395
verboseFlag = verboseFlag || System .getenv ("PYTHONVERBOSE" ) != null ;
396
396
unbufferedIO = unbufferedIO || System .getenv ("PYTHONUNBUFFERED" ) != null ;
397
397
dontWriteBytecode = dontWriteBytecode || System .getenv ("PYTHONDONTWRITEBYTECODE" ) != null ;
398
- if (warnOptions == null ) {
399
- warnOptions = System .getenv ("PYTHONWARNINGS" );
398
+
399
+ String envWarnOptions = System .getenv ("PYTHONWARNINGS" );
400
+ if (envWarnOptions != null && !envWarnOptions .isEmpty ()) {
401
+ if (warnOptions == null ) {
402
+ warnOptions = envWarnOptions ;
403
+ } else {
404
+ warnOptions = envWarnOptions + "," + warnOptions ;
405
+ }
400
406
}
401
407
String cachePrefix = System .getenv ("PYTHONPYCACHEPREFIX" );
402
408
if (cachePrefix != null ) {
You can’t perform that action at this time.
0 commit comments