Skip to content

Instantly share code, notes, and snippets.

@jlnwlf
Created March 31, 2014 10:06
Show Gist options
  • Save jlnwlf/9889183 to your computer and use it in GitHub Desktop.
Save jlnwlf/9889183 to your computer and use it in GitHub Desktop.
Using a special virtualenv or, if the specific virtualenv is not found, using system's default python
{
"shell_cmd": "( workon ${file_base_name} 2>&- && ( echo \"[Using ${file_base_name} virtualenv...]\n\" ; python ${file} ; deactivate ) ) || python ${file}",
"selector": "source.python"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment