Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python] Create model level virtualenv #811

Merged
merged 10 commits into from
Jun 28, 2023
Prev Previous commit
Next Next commit
Update engines/python/src/main/java/ai/djl/python/engine/PyEnv.java
Co-authored-by: Frank Liu <frankfliu2000@gmail.com>
  • Loading branch information
xyang16 and frankfliu authored Jun 27, 2023
commit 857235d88ad7ec34edb321e392c2c5f931b54097
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public synchronized void deleteVirtualEnv(String name) {
if (!venvCreated) {
return;
}
Path path = getVenvDir().resolve(name).toAbsolutePath();
Path path = getVenvDir().resolve(name);
if (path.toFile().exists()) {
xyang16 marked this conversation as resolved.
Show resolved Hide resolved
Utils.deleteQuietly(path);
}
Expand Down