Add shell=True to the docfx call

This commit is contained in:
Eric Holscher 2015-08-14 14:45:49 -07:00
parent 3c89158662
commit 243549f2fe

View File

@ -36,12 +36,13 @@ class DotNetSphinxMapper(SphinxMapperBase):
all_files.add(_file) all_files.add(_file)
if all_files: if all_files:
try: try:
command = ['bash', 'docfx', 'metadata', '--raw', '--force'] command = ['docfx', 'metadata', '--raw', '--force']
command.extend(all_files) command.extend(all_files)
proc = subprocess.Popen( proc = subprocess.Popen(
command, command,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
shell=True,
env=dict((key, os.environ[key]) env=dict((key, os.environ[key])
for key in ['PATH', 'DNX_PATH', 'HOME'] for key in ['PATH', 'DNX_PATH', 'HOME']
if key in os.environ), if key in os.environ),