Skip to content

Commit f7f3890

Browse files
committed
don't set a null path
1 parent 3295660 commit f7f3890

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonContext.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ public PDict getCustomThreadState() {
214214
}
215215

216216
public void initializeMainModule(String path) {
217-
mainModule.setAttribute(__FILE__, path);
217+
if (path != null) {
218+
mainModule.setAttribute(__FILE__, path);
219+
}
218220
}
219221
}

0 commit comments

Comments
 (0)