Added py command.

This commit is contained in:
utahta
2010-12-07 15:51:11 +09:00
parent c0d749d7dc
commit 2b19c65dce
4 changed files with 74 additions and 11 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ from pythonbrew.log import logger
class ListCommand(Command):
name = "list"
usage = "%prog [VERSION]"
summary = "List the installed versions of Python"
summary = "List the installed all pythons"
def __init__(self):
super(ListCommand, self).__init__()
@@ -37,7 +37,7 @@ class ListCommand(Command):
def installed(self, options, args):
logger.info('# installed pythons')
cur = get_current_python_path()
for d in sorted(os.listdir('%s/' % PATH_PYTHONS)):
for d in sorted(os.listdir(PATH_PYTHONS)):
if cur == os.path.join(PATH_PYTHONS, d, 'bin','python'):
logger.info('%s (*)' % d)
cur = None