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.
1 parent ae5c59c commit 65dd7b4Copy full SHA for 65dd7b4
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/NFIPosixSupport.java
@@ -645,6 +645,13 @@ public void chdir(Object path,
645
if (result != 0) {
646
throw newPosixException(invokeNode, getErrno(invokeNode));
647
}
648
+ // TODO we don;t need to do this more than once
649
+ try {
650
+ TruffleFile truffleFile = context.getEnv().getInternalTruffleFile(".").getAbsoluteFile();
651
+ context.getEnv().setCurrentWorkingDirectory(truffleFile);
652
+ } catch (Exception e) {
653
+ LOGGER.log(Level.WARNING, "Unable to change Truffle working directory", e);
654
+ }
655
656
657
@ExportMessage
0 commit comments