From 9da28aa6f3e14b723b4ef401d1918d3c64e0d749 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Sun, 12 Jul 2015 12:30:07 -0700 Subject: [PATCH] Fix environment call for failing tests --- autoapi/mappers/dotnet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoapi/mappers/dotnet.py b/autoapi/mappers/dotnet.py index 3e78732..eaca467 100644 --- a/autoapi/mappers/dotnet.py +++ b/autoapi/mappers/dotnet.py @@ -32,7 +32,8 @@ class DotNetSphinxMapper(SphinxMapperBase): stdout=subprocess.PIPE, stderr=subprocess.PIPE, 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)) _, error_output = proc.communicate() if error_output: self.app.warn(error_output)