We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e129177 + 706b11e commit d4f0b54Copy full SHA for d4f0b54
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code/PCode.java
@@ -169,7 +169,10 @@ private static String extractFileName(RootNode rootNode) {
169
RootNode funcRootNode = (rootNode instanceof GeneratorFunctionRootNode) ? ((GeneratorFunctionRootNode) rootNode).getFunctionRootNode() : rootNode;
170
SourceSection src = funcRootNode.getSourceSection();
171
if (src != null) {
172
- return src.getSource().getName();
+ if (src.getSource().getPath() == null) {
173
+ return src.getSource().getName();
174
+ }
175
+ return src.getSource().getPath();
176
} else if (funcRootNode instanceof ModuleRootNode) {
177
return funcRootNode.getName();
178
} else {
0 commit comments