Advertisement
Guest User

Python/Go switcher

a guest
Mar 19th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. #!/bin/bash
  2. # http://www.reddit.com/r/AppEngine/comments/1akmrp/does_installing_the_app_engine_sdk_for_both/
  3. # for TheMagicHorsey
  4.  
  5. python_server= #Path to python server
  6. go_server= #Path to go server i.e. $HOME/Dev/go_appengine/dev_appserver.py
  7.  
  8.  
  9. if [ "$1" == "python" ]
  10.     then
  11.     server_path=$python_server
  12.     echo "Switching to python..."
  13. elif [ "$1" == "go" ]
  14.     then
  15.     server_path=$go_server
  16.     echo "Switching to go..."
  17. else
  18.     echo "Valid options: python or go"
  19.     exit
  20. fi
  21.  
  22. ln -f -s $server_path /usr/local/bin/dev_appserver.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement