Skip to content

Commit 88c0688

Browse files
Update OpusCatMtEngine.command
1 parent f49015c commit 88c0688

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/sh
2-
opuscatdir=$(dirname $0)/OpusCatMtEngine
3-
cd $opuscatdir
4-
export DYLD_LIBRARY_PATH=$(realpath ./python3-macos-3.8.13-universal2/lib)
5-
PYTHONHOME=./python3-macos-3.8.13-universal2 ./OpusCatMtEngineCore
2+
3+
# Specify the directory in which the script is located
4+
script_dir="$(cd "$(dirname "$0")" && pwd)"
5+
6+
# Change to the OpusCatMtEngine directory
7+
opuscatdir="$script_dir/OpusCatMtEngine"
8+
cd "$opuscatdir"
9+
10+
# Set the relative path for DYLD_LIBRARY_PATH based on the script directory
11+
export DYLD_LIBRARY_PATH="$opuscatdir/python3-macos-3.8.13-universal2/lib"
12+
13+
# Set PYTHONHOME and run OpusCatMtEngineCore
14+
PYTHONHOME="$opuscatdir/python3-macos-3.8.13-universal2" "$opuscatdir/OpusCatMtEngineCore“

0 commit comments

Comments
 (0)