gazectl 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/gazectl +9 -2
- package/package.json +1 -1
package/bin/gazectl
CHANGED
|
@@ -6,8 +6,15 @@ VENV_DIR="$GAZECTL_DIR/venv"
|
|
|
6
6
|
MODEL_FILE="$GAZECTL_DIR/face_landmarker.task"
|
|
7
7
|
MODEL_URL="https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task"
|
|
8
8
|
|
|
9
|
-
#
|
|
10
|
-
|
|
9
|
+
# Resolve symlinks to find actual package directory
|
|
10
|
+
# (npm symlinks bin scripts from node_modules/.bin/)
|
|
11
|
+
SOURCE="${BASH_SOURCE[0]}"
|
|
12
|
+
while [ -L "$SOURCE" ]; do
|
|
13
|
+
DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
|
|
14
|
+
SOURCE="$(readlink "$SOURCE")"
|
|
15
|
+
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
|
|
16
|
+
done
|
|
17
|
+
SCRIPT_DIR="$(cd "$(dirname "$SOURCE")/.." && pwd)"
|
|
11
18
|
GAZECTL_PY="$SCRIPT_DIR/gazectl.py"
|
|
12
19
|
REQUIREMENTS="$SCRIPT_DIR/requirements.txt"
|
|
13
20
|
|