]> granicus.if.org Git - python/commitdiff
Fixes Python failing to run during Windows release build
authorSteve Dower <steve.dower@microsoft.com>
Sat, 2 May 2015 22:23:27 +0000 (15:23 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Sat, 2 May 2015 22:23:27 +0000 (15:23 -0700)
Tools/msi/msi.props

index 6ca0332690c0649cbb538c9d597e3309b5152c38..bd22345ec31704a5844840bf26937856bd4b78c0 100644 (file)
             <_GenerateCommand>import uuid; print('\n'.join('{}={}'.format(i, uuid.uuid5(uuid.UUID('c8d9733e-a70c-43ff-ab0c-e26456f11083'), '$(ReleaseUri)' + j)) for i,j in [$(_Uuids.Replace(`"`,`'`))]))</_GenerateCommand>
         </PropertyGroup>
         
-        <Exec Command='"$(PythonExe)" -c "$(_GenerateCommand)" &gt; "$(IntermediateOutputPath)$(OutputName)guids.txt"' IgnoreExitCode="false" />
+        <Exec Command='"$(PythonExe)" -c "$(_GenerateCommand)" &gt; "$(IntermediateOutputPath)$(OutputName)guids.txt"'
+              WorkingDirectory="$(MSBuildThisFileDirectory)"
+              IgnoreExitCode="false" />
         
         <ReadLinesFromFile File="$(IntermediateOutputPath)$(OutputName)guids.txt">
             <Output TaskParameter="Lines" ItemName="_UuidValue" />