Skip to content

Commit 16ac3b0

Browse files
committed
/usr/share/fonts is the wrong path on Mac
1 parent e9f5935 commit 16ac3b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

training/tesstrain_utils.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ FONTS=(
2020
"Arial" \
2121
"Times New Roman," \
2222
)
23-
FONTS_DIR="/usr/share/fonts/truetype/"
23+
if [ "$(uname)" == "Darwin" ];then
24+
FONTS_DIR="/Library/Fonts/"
25+
else
26+
FONTS_DIR="/usr/share/fonts/truetype/"
27+
fi
2428
OUTPUT_DIR="/tmp/tesstrain/tessdata"
2529
OVERWRITE=0
2630
RUN_SHAPE_CLUSTERING=0

0 commit comments

Comments
 (0)