diff --git a/Commands/--Console Shell.tmCommand b/Commands/--Console Shell.tmCommand index 2474407..d5d00d2 100644 --- a/Commands/--Console Shell.tmCommand +++ b/Commands/--Console Shell.tmCommand @@ -9,6 +9,11 @@ export TM_RUBY=$(type -p "${TM_RUBY:-ruby}") +export TM_VIRTUALENV=$(cat ${TM_PROJECT_DIRECTORY}/.venv) +source /usr/local/bin/virtualenvwrapper.sh +workon ${TM_VIRTUALENV} +export TM_PYTHON=`which python` + "${TM_RUBY}" -KU -- "$TM_BUNDLE_SUPPORT/run_shell.rb" "shell" input diff --git a/Commands/Load Fixture.tmCommand b/Commands/Load Fixture.tmCommand index 4daf3cf..724eacf 100644 --- a/Commands/Load Fixture.tmCommand +++ b/Commands/Load Fixture.tmCommand @@ -9,6 +9,11 @@ export TM_RUBY=$(type -p "${TM_RUBY:-ruby}") +export TM_VIRTUALENV=$(cat ${TM_PROJECT_DIRECTORY}/.venv) +source /usr/local/bin/virtualenvwrapper.sh +workon ${TM_VIRTUALENV} +export TM_PYTHON=`which python` + "${TM_RUBY}" -KU -- "$TM_BUNDLE_SUPPORT/load_data.rb" input diff --git a/Commands/Local Settings Differences.tmCommand b/Commands/Local Settings Differences.tmCommand index c2fcf38..2b1684a 100644 --- a/Commands/Local Settings Differences.tmCommand +++ b/Commands/Local Settings Differences.tmCommand @@ -9,6 +9,11 @@ export TM_RUBY=$(type -p "${TM_RUBY:-ruby}") +export TM_VIRTUALENV=$(cat ${TM_PROJECT_DIRECTORY}/.venv) +source /usr/local/bin/virtualenvwrapper.sh +workon ${TM_VIRTUALENV} +export TM_PYTHON=`which python` + "${TM_RUBY}" -KU -- "$TM_BUNDLE_SUPPORT/generic_command.rb" "diffsettings" input diff --git a/Commands/Run Server.tmCommand b/Commands/Run Server.tmCommand index 606b1d8..c6e644b 100644 --- a/Commands/Run Server.tmCommand +++ b/Commands/Run Server.tmCommand @@ -9,6 +9,11 @@ export TM_RUBY=$(type -p "${TM_RUBY:-ruby}") +export TM_VIRTUALENV=$(cat ${TM_PROJECT_DIRECTORY}/.venv) +source /usr/local/bin/virtualenvwrapper.sh +workon ${TM_VIRTUALENV} +export TM_PYTHON=`which python` + "${TM_RUBY}" -KU -- "$TM_BUNDLE_SUPPORT/run_server.rb" runserver input diff --git a/Commands/Run Test-Server.tmCommand b/Commands/Run Test-Server.tmCommand index 91fe286..632dbe8 100644 --- a/Commands/Run Test-Server.tmCommand +++ b/Commands/Run Test-Server.tmCommand @@ -11,6 +11,11 @@ export TM_RUBY=$(type -p "${TM_RUBY:-ruby}") +export TM_VIRTUALENV=$(cat ${TM_PROJECT_DIRECTORY}/.venv) +source /usr/local/bin/virtualenvwrapper.sh +workon ${TM_VIRTUALENV} +export TM_PYTHON=`which python` + "${TM_RUBY}" -KU -- "$TM_BUNDLE_SUPPORT/run_server.rb" testserver "$TM_SELECTED_FILES" input diff --git a/Commands/Run Tests.tmCommand b/Commands/Run Tests.tmCommand index ce256e1..3d1fbc1 100644 --- a/Commands/Run Tests.tmCommand +++ b/Commands/Run Tests.tmCommand @@ -9,6 +9,11 @@ export TM_RUBY=$(type -p "${TM_RUBY:-ruby}") +export TM_VIRTUALENV=$(cat ${TM_PROJECT_DIRECTORY}/.venv) +source /usr/local/bin/virtualenvwrapper.sh +workon ${TM_VIRTUALENV} +export TM_PYTHON=`which python` + "${TM_RUBY}" -KU -- "$TM_BUNDLE_SUPPORT/run_tests.rb" input diff --git a/Commands/Sync DB.tmCommand b/Commands/Sync DB.tmCommand index d3b8157..3908b1f 100644 --- a/Commands/Sync DB.tmCommand +++ b/Commands/Sync DB.tmCommand @@ -9,6 +9,11 @@ export TM_RUBY=$(type -p "${TM_RUBY:-ruby}") +export TM_VIRTUALENV=$(cat ${TM_PROJECT_DIRECTORY}/.venv) +source /usr/local/bin/virtualenvwrapper.sh +workon ${TM_VIRTUALENV} +export TM_PYTHON=`which python` + "${TM_RUBY}" -KU -- "$TM_BUNDLE_SUPPORT/generic_command.rb" "syncdb" input none diff --git a/Commands/untitled.tmCommand b/Commands/untitled.tmCommand index 69af655..687fed2 100644 --- a/Commands/untitled.tmCommand +++ b/Commands/untitled.tmCommand @@ -9,6 +9,11 @@ export TM_RUBY=$(type -p "${TM_RUBY:-ruby}") +export TM_VIRTUALENV=$(cat ${TM_PROJECT_DIRECTORY}/.venv) +source /usr/local/bin/virtualenvwrapper.sh +workon ${TM_VIRTUALENV} +export TM_PYTHON=`which python` + "${TM_RUBY}" -KU -- "$TM_BUNDLE_SUPPORT/validate_models.rb" validate input none