+\r
+ #\r
+ # Change PATH variable\r
+ #\r
+ newPath = os.environ['PATH'].split(os.path.pathsep)\r
+ binDir = \\r
+ os.path.join(workspace, 'Tools', 'BaseTools', 'Bin', sys.platform.title())\r
+ if binDir not in newPath:\r
+ newPath.append(binDir)\r
+ newPath = os.path.pathsep.join(newPath)\r
+ print >> script, 'export PATH=%s' % newPath\r
+\r