mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Fix to try to remove Python 2.7 dependency
This commit is contained in:
parent
f977dfcfe7
commit
725982cc5b
1 changed files with 3 additions and 2 deletions
|
@ -770,8 +770,9 @@ def parse_and_output_man_pages(paths, output_directory, show_progress):
|
||||||
def get_paths_from_manpath():
|
def get_paths_from_manpath():
|
||||||
# Return all the paths to man(1) files in the manpath
|
# Return all the paths to man(1) files in the manpath
|
||||||
import subprocess, os
|
import subprocess, os
|
||||||
manpath = subprocess.check_output(['man', '--path']).strip()
|
proc = subprocess.Popen(['man', '--path'], stdout=subprocess.PIPE)
|
||||||
parent_paths = manpath.split(':')
|
manpath, err_data = proc.communicate()
|
||||||
|
parent_paths = manpath.strip().split(':')
|
||||||
if not parent_paths:
|
if not parent_paths:
|
||||||
print >> sys.stderr, "Unable to get the manpath (tried man --path)"
|
print >> sys.stderr, "Unable to get the manpath (tried man --path)"
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
Loading…
Reference in a new issue