Added symlink command. Added --as option.

This commit is contained in:
Yuta
2011-03-23 01:14:39 +09:00
parent 2f3fbeca53
commit eb49f121db
6 changed files with 65 additions and 10 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ class ListCommand(Command):
logger.info('# installed pythons')
cur = get_current_python_path()
for d in sorted(os.listdir(PATH_PYTHONS)):
if cur == os.path.join(PATH_PYTHONS, d, 'bin','python'):
if cur and os.path.samefile(cur, os.path.join(PATH_PYTHONS, d, 'bin','python')):
logger.info('%s (*)' % d)
cur = None
else: