File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,13 @@ public static Context.Builder contextBuilder(VirtualFileSystem vfs) {
354
354
* <code>/python/venv</code> (python virtual environment)</li>
355
355
* </ul>
356
356
* </p>
357
- *
357
+ *
358
+ * <p/>
359
+ * When Maven or Gradle GraalPy plugin is used to build the virtual environment, it also has to
360
+ * be configured to generate the virtual environment into the same directory using the
361
+ * {@code <externalDirectory>} tag in Maven or the {@code externalDirectory} field in Gradle.
362
+ * <p/>
363
+ *
358
364
* @param externalResourcesDirectory the root directory with GraalPy specific embedding
359
365
* resources
360
366
* @return a new {@link org.graalvm.polyglot.Context.Builder} instance
Original file line number Diff line number Diff line change @@ -119,10 +119,17 @@ private Builder() {
119
119
* <p/>
120
120
* User scripts, data files, and other resources that should be accessible in Python should
121
121
* be put into this resource directory, e.g.,
122
- * {@code src/main/resources/org.graalvm.python.vfs} for the default value of this option
123
- * and assuming the usual layout of a Maven or Gradle project.
122
+ * {@code src/main/resources/org.graalvm.python.vfs/src} where:
123
+ * <ul>
124
+ * <li>assuming the usual layout of a Maven or Gradle project then the
125
+ * {@code src/main/resources/org.graalvm.python.vfs} prefix is the default value of the
126
+ * {@code resourceDirectory} option</li>
127
+ * <li>and the following {@code src} directory is the folder used by {@link GraalPyResources
128
+ * convention} for Python application files and is configured as the default search path for
129
+ * Python module files.</i>
130
+ * </ul>
124
131
* <p/>
125
- * When Maven and Gradle GraalPy plugin is used to build the virtual environment, it should
132
+ * When Maven or Gradle GraalPy plugin is used to build the virtual environment, it should
126
133
* be configured to generate the virtual environment into the same directory using the
127
134
* {@code <resourceDirectory>} tag in Maven or the {@code resourceDirectory} field in
128
135
* Gradle.
You can’t perform that action at this time.
0 commit comments