Commit 2f1dbe5
authored
[0.9.1][bugfix] fix file not found error with shutil.rmtree (#2506)
### What this PR does / why we need it?
1. fix FileNotFoundError when calling shutil.rmtree
2. add a suffix directory after `TORCHAIR_CACHE_HOME` to prevent
accidental file deletion.
### Does this PR introduce any user-facing change?
We've made a change to how the `TORCHAIR_CACHE_HOME` enviroment variable
is utilized to enhance safety and prevent accidental file deletion by
adding a suffix directory.
### How was this patch tested?
e2e vllm serving and CI passed.
Signed-off-by: linfeng-yuan <[email protected]>1 parent 8dda7d9 commit 2f1dbe5
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
| 455 | + | |
| 456 | + | |
0 commit comments