[Python-checkins] cpython (3.5): Ensures intermediate directory is created before accessing it.

steve.dower python-checkins at python.org
Sat Dec 3 15:13:11 EST 2016


https://hg.python.org/cpython/rev/f30d9af3e509
changeset:   105433:f30d9af3e509
branch:      3.5
parent:      105431:68530c0a1487
user:        Steve Dower <steve.dower at microsoft.com>
date:        Sat Dec 03 11:56:20 2016 -0800
summary:
  Ensures intermediate directory is created before accessing it.

files:
  PCbuild/pythoncore.vcxproj |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -405,6 +405,7 @@
       <_HG Condition="$(HG.Contains(` `))">"$(HG)"</_HG>
     </PropertyGroup>
     <Message Text="Getting build info from $(_HG)" Importance="high" />
+    <MakeDir Directories="$(IntDir)" Condition="!Exists($(IntDir))" />
     <Exec Command="$(_HG) id -b > "$(IntDir)hgbranch.txt"" ContinueOnError="true" />
     <Exec Command="$(_HG) id -i > "$(IntDir)hgversion.txt"" ContinueOnError="true" />
     <Exec Command="$(_HG) id -t > "$(IntDir)hgtag.txt"" ContinueOnError="true" />

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list