Permalink
Browse files

Make user management scripts respect virtualenv

  • Loading branch information...
1 parent 694b293 commit 0a3a1647227503c7c1e12b466d67459c13e115ff @mvliet mvliet committed with BuzzTroll Jul 7, 2010
Showing with 4 additions and 0 deletions.
  1. +1 −0 home/bin/nimbus-edit-user
  2. +1 −0 home/bin/nimbus-list-users
  3. +1 −0 home/bin/nimbus-new-user
  4. +1 −0 home/bin/nimbus-remove-user
@@ -14,5 +14,6 @@ PYTHONPATH="$NIMBUS_PYSRC:$NIMBUS_PYLIB:$PYTHONPATH"
export PYTHONPATH
source $NIMBUS_HOME/cumulus/env.sh
+source $NIMBUS_HOME/ve/bin/activate
$PYTHON_EXE $NIMBUS_HOME/libexec/nimbus_edit_user.py "$@"
exit $?
@@ -14,5 +14,6 @@ PYTHONPATH="$NIMBUS_PYSRC:$NIMBUS_PYLIB:$PYTHONPATH"
export PYTHONPATH
source $NIMBUS_HOME/cumulus/env.sh
+source $NIMBUS_HOME/ve/bin/activate
$PYTHON_EXE $NIMBUS_HOME/libexec//nimbus_list_users.py "$@"
exit $?
@@ -17,6 +17,7 @@ DJANGO_SETTINGS_MODULE="nimbusweb.portal.settings"
export DJANGO_SETTINGS_MODULE
source $NIMBUS_HOME/cumulus/env.sh
+source $NIMBUS_HOME/ve/bin/activate
cd $NIMBUS_HOME
$PYTHON_EXE $NIMBUS_HOME/libexec/nimbus_new_user.py "$@"
exit $?
@@ -14,5 +14,6 @@ PYTHONPATH="$NIMBUS_PYSRC:$NIMBUS_PYLIB:$PYTHONPATH"
export PYTHONPATH
source $NIMBUS_HOME/cumulus/env.sh
+source $NIMBUS_HOME/ve/bin/activate
$PYTHON_EXE $NIMBUS_HOME/libexec//nimbus_remove_user.py "$@"
exit $?

0 comments on commit 0a3a164

Please sign in to comment.