Skip to content

Commit

Permalink
[DB-32172] pynuoadmin error reference from client package nuocmd command
Browse files Browse the repository at this point in the history
After the change on pynuoadmin directory structure, the nuocmd script
needs to be updated with the new location of pynuoadmin folder,
specifically the script nuodb_cli.py
  • Loading branch information
eresende-nuodb committed Oct 23, 2020
1 parent b53ec82 commit a9c5cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/nuocmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi

# Find the pynuoadmin installation
_pkgdir=etc/python/site-packages
_cli="$_pkgdir/nuodb_cli.py"
_cli="$_pkgdir/pynuoadmin/nuodb_cli.py"
_home=
test -n "$NUOCLIENT_HOME" && test -f "$NUOCLIENT_HOME/$_cli" \
&& _home="$NUOCLIENT_HOME"
Expand All @@ -31,4 +31,4 @@ test -z "$_home" && test -f "${DIR%/*}/$_cli" \
test -n "$_home" || die "Cannot locate pynuoadmin installation"

export PYTHONPATH="${PYTHONPATH:+$PYTHONPATH:}$_home/$_pkgdir"
exec "$_python" -m nuodb_cli "$@"
exec "$_python" -m pynuoadmin.nuodb_cli "$@"

0 comments on commit a9c5cde

Please sign in to comment.