Skip to content

Commit e63289c

Browse files
committed
build: also set PADDLE_PDX_CACHE_HOME in build spec file
1 parent 6d698a4 commit e63289c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MagiaTimeline.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
from PyInstaller.utils.hooks import collect_all
44
from PyInstaller.building.build_main import Analysis, PYZ, EXE, COLLECT
55

6-
6+
import os
7+
os.environ["PADDLE_PDX_CACHE_HOME"] = "./PaddleOCRModels"
78

89
def collect_all_list(package_names):
910
extra_datas = []

0 commit comments

Comments
 (0)