OutputBinFileName = os.path.join(OutputDir, "%s.bin" % BaseName)\r
\r
try:\r
- PopenObject = subprocess.Popen([ToolPath,\r
+ PopenObject = subprocess.Popen(' '.join([ToolPath,\r
'-o', OutputBinFileName, \r
'-m', OutputMapFileName,\r
'-q',\r
'-f',\r
- VpdFileName],\r
+ VpdFileName]),\r
stdout=subprocess.PIPE, \r
- stderr= subprocess.PIPE)\r
+ stderr= subprocess.PIPE,\r
+ shell=True)\r
except Exception, X:\r
EdkLogger.error("BPDG", BuildToolError.COMMAND_FAILURE, ExtraData="%s" % (str(X)))\r
(out, error) = PopenObject.communicate()\r
if not isinstance(Command, list):\r
if platform.system() != 'Windows':\r
Command = Command.split()\r
+ Command = ' '.join(Command)\r
\r
Proc = None\r
EndOfProcedure = None\r
try:\r
# launch the command\r
- Proc = Popen(Command, stdout=PIPE, stderr=PIPE, env=os.environ, cwd=WorkingDir, bufsize=-1)\r
+ Proc = Popen(Command, stdout=PIPE, stderr=PIPE, env=os.environ, cwd=WorkingDir, bufsize=-1, shell=True)\r
\r
# launch two threads to read the STDOUT and STDERR\r
EndOfProcedure = Event()\r