Browse Source

Move pxpath bin path to variable

Build checks are the first customer.
Alois Mahdal 6 years ago
parent
commit
52d7b66edc
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      src/pxpath.sh.skel

+ 6
- 2
src/pxpath.sh.skel View File

12
 # libxml2 and its Python bindings.
12
 # libxml2 and its Python bindings.
13
 #
13
 #
14
 
14
 
15
-
16
 pxpath() {
15
 pxpath() {
17
     #
16
     #
18
     # Run XPath query $1 on file $2, register namespaces $3..
17
     # Run XPath query $1 on file $2, register namespaces $3..
63
             }
62
             }
64
     esac
63
     esac
65
     #shellcheck disable=SC2154
64
     #shellcheck disable=SC2154
66
-    "__SHELLFU_LIBEXEC__"/pxpath \
65
+    "$_PXPATH__BIN" \
67
         "$query" "$file" "$@"; es=$?
66
         "$query" "$file" "$@"; es=$?
68
     test -n "$tmp" && rm "$tmp"
67
     test -n "$tmp" && rm "$tmp"
69
     return $es
68
     return $es
73
 # INTERNAL # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
72
 # INTERNAL # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
74
 #          #                                not even as XPath expression #
73
 #          #                                not even as XPath expression #
75
 
74
 
75
+#
76
+# Path to pxpath python script
77
+#
78
+_PXPATH__BIN=${_PXPATH__BIN:-__SHELLFU_LIBEXEC__/pxpath}
79
+
76
 __pxpath__usage() {
80
 __pxpath__usage() {
77
     #
81
     #
78
     # Print usage message for function pxpath__$1
82
     # Print usage message for function pxpath__$1