added some function to bashrc. fixed issue 2.

This commit is contained in:
utahta
2010-11-20 07:38:22 +09:00
parent 0bc17f56db
commit 0605c27c57
12 changed files with 107 additions and 33 deletions
+15 -2
View File
@@ -1,3 +1,16 @@
from pythonbrew.installer import install_pythonbrew
from pythonbrew.installer import install_pythonbrew, upgrade_pythonbrew
from optparse import OptionParser
if __name__ == "__main__":
install_pythonbrew()
parser = OptionParser()
parser.add_option(
'-U', '--upgrade',
dest="upgrade",
action="store_true",
default=False,
help="Upgrade."
)
(opt, arg) = parser.parse_args()
if opt.upgrade:
upgrade_pythonbrew()
else:
install_pythonbrew()