File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -447,8 +447,8 @@ public static Path getNativeExecutablePath() {
447
447
*
448
448
* <pre>
449
449
* Path resourcesDir = Path.of(System.getProperty("user.home"), ".cache", "my.java.python.app.resources");
450
- * FileSystem fs = GraalPyResources.createVirtualFileSystem ();
451
- * GraalPyResources.extractVirtualFileSystemResources(fs , resourcesDir);
450
+ * VirtualFileSystem vfs = VirtualFileSystem.newBuilder().build ();
451
+ * GraalPyResources.extractVirtualFileSystemResources(vfs , resourcesDir);
452
452
* try (Context context = GraalPyResources.contextBuilder(resourcesDir).build()) {
453
453
* context.eval("python", "print('hello world')");
454
454
* }
You can’t perform that action at this time.
0 commit comments