File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding/utils Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 145
145
* @see VirtualFileSystem.Builder
146
146
*/
147
147
// TODO: link to user guide
148
- public class GraalPyResources {
148
+ public final class GraalPyResources {
149
+
150
+ private GraalPyResources () {
151
+ }
149
152
150
153
/**
151
154
* Creates a GraalPy context preconfigured with a {@link VirtualFileSystem} and other GraalPy
@@ -362,7 +365,7 @@ private static Context.Builder createContextBuilder() {
362
365
* <p>
363
366
* <b>Example </b> creating a GraalPy context precofigured with an external resource directory
364
367
* located next to a native image executable.
365
- *
368
+ *
366
369
* <pre>
367
370
* Path resourcesDir = GraalPyResources.getNativeExecutablePath().getParent().resolve("python-resources");
368
371
* try (Context context = GraalPyResources.contextBuilder(resourcesDir).build()) {
@@ -405,7 +408,7 @@ public static Path getNativeExecutablePath() {
405
408
* </p>
406
409
* <p>
407
410
* <b>Example</b>
408
- *
411
+ *
409
412
* <pre>
410
413
* Path resourcesDir = Path.of(System.getProperty("user.home"), ".cache", "my.java.python.app.resources");
411
414
* FileSystem fs = GraalPyResources.createVirtualFileSystem();
You can’t perform that action at this time.
0 commit comments