diff options
author | Michael Kinney <michael.d.kinney@intel.com> | 2017-01-31 09:21:20 -0800 |
---|---|---|
committer | Michael D Kinney <michael.d.kinney@intel.com> | 2017-07-13 17:22:13 -0700 |
commit | b926f2f2a4cd404df1d2c1dddbcd1178acc63b5e (patch) | |
tree | a45a9d6c17c7ed01312bb16e55cdcdace054e1c5 /BaseTools/Source/Python/build/build.py | |
parent | b1fe2029fa2f473922fb830a2e33c5ae0c0ae20d (diff) | |
download | edk2-b926f2f2a4cd404df1d2c1dddbcd1178acc63b5e.tar.gz edk2-b926f2f2a4cd404df1d2c1dddbcd1178acc63b5e.tar.bz2 edk2-b926f2f2a4cd404df1d2c1dddbcd1178acc63b5e.zip |
BaseTools/Build: Support python scripts in PREBUILD/POSTBUILD
https://bugzilla.tianocore.org/show_bug.cgi?id=627
Add shell=True in Popen() calls to support direct execution of
python scripts
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build/build.py')
-rw-r--r-- | BaseTools/Source/Python/build/build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index cfd28a4b5b..1e14fb4dcc 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -1036,7 +1036,7 @@ class Build(): os.remove(self.PlatformBuildPath)
if sys.platform == "win32":
args = ' && '.join((self.Prebuild, 'set > ' + PrebuildEnvFile))
- Process = Popen(args, stdout=PIPE, stderr=PIPE)
+ Process = Popen(args, stdout=PIPE, stderr=PIPE, shell=True)
else:
args = ' && '.join((self.Prebuild, 'env > ' + PrebuildEnvFile))
Process = Popen(args, stdout=PIPE, stderr=PIPE, shell=True)
@@ -1079,7 +1079,7 @@ class Build(): if self.Postbuild:
EdkLogger.info("\n- Postbuild Start -\n")
if sys.platform == "win32":
- Process = Popen(self.Postbuild, stdout=PIPE, stderr=PIPE)
+ Process = Popen(self.Postbuild, stdout=PIPE, stderr=PIPE, shell=True)
else:
Process = Popen(self.Postbuild, stdout=PIPE, stderr=PIPE, shell=True)
# launch two threads to read the STDOUT and STDERR
|