Skip to content

Commit b4b8c75

Browse files
committed
removed GRAALPY_VFS_MOUNT_POINT env var from VFS
1 parent 05769c7 commit b4b8c75

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,7 @@ public VirtualFileSystem build() {
235235
private static Path getMountPointAsPath(String mp) {
236236
Path mountPoint = Path.of(mp);
237237
if (mp.endsWith(PLATFORM_SEPARATOR) || !mountPoint.isAbsolute()) {
238-
String msg;
239-
if (System.getenv("GRAALPY_VFS_MOUNT_POINT") != null) {
240-
msg = String.format("Environment variable GRAALPY_VFS_MOUNT_POINT must be set to an absolute path without a trailing separator: '%s'", mp);
241-
} else {
242-
msg = String.format("Virtual filesystem mount point must be set to an absolute path without a trailing separator: '%s'", mp);
243-
}
244-
throw new IllegalArgumentException(msg);
238+
throw new IllegalArgumentException(String.format("Virtual filesystem mount point must be set to an absolute path without a trailing separator: '%s'", mp));
245239
}
246240
return mountPoint;
247241
}
@@ -387,12 +381,7 @@ private void removeExtractDir() {
387381
}
388382

389383
this.caseInsensitive = caseInsensitive;
390-
String mp = System.getenv("GRAALPY_VFS_MOUNT_POINT");
391-
if (mp != null) {
392-
this.mountPoint = getMountPointAsPath(mp);
393-
} else {
394-
this.mountPoint = mountPoint;
395-
}
384+
this.mountPoint = mountPoint;
396385

397386
this.mountPointLowerCase = mountPoint.toString().toLowerCase(Locale.ROOT);
398387

0 commit comments

Comments
 (0)