Skip to content

This allows for your bundle to be used with virtualenv. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Commands/--Console Shell.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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"
</string>
<key>input</key>
Expand Down
5 changes: 5 additions & 0 deletions Commands/Load Fixture.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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"
</string>
<key>input</key>
Expand Down
5 changes: 5 additions & 0 deletions Commands/Local Settings Differences.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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"
</string>
<key>input</key>
Expand Down
5 changes: 5 additions & 0 deletions Commands/Run Server.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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
</string>
<key>input</key>
Expand Down
5 changes: 5 additions & 0 deletions Commands/Run Test-Server.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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"
</string>
<key>input</key>
Expand Down
5 changes: 5 additions & 0 deletions Commands/Run Tests.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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"
</string>
<key>input</key>
Expand Down
5 changes: 5 additions & 0 deletions Commands/Sync DB.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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"</string>
<key>input</key>
<string>none</string>
Expand Down
5 changes: 5 additions & 0 deletions Commands/untitled.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -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</string>
<key>input</key>
<string>none</string>
Expand Down