commit
b5c14553a9
|
@ -101,8 +101,9 @@ def cwd(pl, segment_info, dir_shorten_len=None, dir_limit_depth=None, use_path_s
|
|||
cwd = "[not found]"
|
||||
else:
|
||||
raise
|
||||
home = u(segment_info['home'])
|
||||
home = segment_info['home']
|
||||
if home:
|
||||
home = u(home)
|
||||
cwd = re.sub('^' + re.escape(home), '~', cwd, 1)
|
||||
cwd_split = cwd.split(os.sep)
|
||||
cwd_split_len = len(cwd_split)
|
||||
|
|
|
@ -3,7 +3,8 @@ pip install .
|
|||
pip install psutil
|
||||
if python -c 'import sys; sys.exit(1 * (sys.version_info[0] != 2))' ; then
|
||||
# Python 2
|
||||
pip install mercurial bzr
|
||||
pip install mercurial
|
||||
pip install --allow-external bzr --allow-unverified bzr bzr
|
||||
if python -c 'import sys; sys.exit(1 * (sys.version_info[1] >= 7))' ; then
|
||||
# Python 2.6
|
||||
pip install unittest2 argparse
|
||||
|
|
Loading…
Reference in New Issue