#!/usr/bin/env bash

# check below if VIRTUAL_ENV is set
if [ -z "$VIRTUAL_ENV" ]; then
  source ~/scripts/activate_ve ''
fi

python -m machineconfig.scripts.python.devops $@
chmod +x ~/tmp_results/shells/python_return_command.sh
source ~/tmp_results/shells/python_return_command.sh

# check below if VIRTUAL_ENV enviroment variable exist, then deactivate it, other wise skip
if [ -n "$VIRTUAL_ENV" ]; then
  deactivate
fi
