Make it immune to the absense of powerline_appended_path

This commit is contained in:
ZyX 2014-09-04 08:28:47 +04:00
parent a919b453ee
commit 0bb14dbe9c
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ finally
call s:rcmd(" real_powerline_dir = os.path.realpath(powerline_dir)")
call s:rcmd(" real_this_dir = os.path.realpath(this_dir)")
call s:rcmd(" this_dir_par = os.path.dirname(real_this_dir)")
call s:rcmd(" powerline_appended_path = globals().get('powerline_appended_path')")
call s:rcmd(" if powerline_appended_path is not None and this_dir_par != powerline_appended_path:")
call s:rcmd(" print('Check your installation: this script is symlinked somewhere')")
call s:rcmd(" print('where powerline is not present: {0!r} != {1!r}.'.format(")