Skip to content

Commit f6102e4

Browse files
committed
fixed javadoc in GraalPyResources.extractVirtualFileSystemResources()
1 parent 4c94904 commit f6102e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding/utils/GraalPyResources.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ public static Path getNativeExecutablePath() {
447447
*
448448
* <pre>
449449
* 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);
452452
* try (Context context = GraalPyResources.contextBuilder(resourcesDir).build()) {
453453
* context.eval("python", "print('hello world')");
454454
* }

0 commit comments

Comments
 (0)