We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f49015c commit 88c0688Copy full SHA for 88c0688
1 file changed
OpusCatMTEngineCore/OpusCatMtEngine.command
@@ -1,5 +1,14 @@
1
#!/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
+
+# Specify the directory in which the script is located
+script_dir="$(cd "$(dirname "$0")" && pwd)"
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