summaryrefslogtreecommitdiffstats
path: root/src/build/sbeOpDistribute.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/build/sbeOpDistribute.py')
-rwxr-xr-xsrc/build/sbeOpDistribute.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/build/sbeOpDistribute.py b/src/build/sbeOpDistribute.py
index 98024205..cb735b73 100755
--- a/src/build/sbeOpDistribute.py
+++ b/src/build/sbeOpDistribute.py
@@ -22,24 +22,25 @@
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG
+from __future__ import print_function
import os
import sys
import getopt
def usage():
- print "usage:sbeOpDistribute.py [--sbe_binary_dir] <sbe binary path> [--img_dir] <images path>"
+ print("usage:sbeOpDistribute.py [--sbe_binary_dir] <sbe binary path> [--img_dir] <images path>")
def run_system_cmd(cmd):
- print 'Cmd:<'+cmd+'>'
+ print('Cmd:<'+cmd+'>')
if(os.system(cmd)):
- print "ERROR running cmd:<"+cmd+">"
+ print("ERROR running cmd:<"+cmd+">")
exit(1)
def main(argv):
try:
opts, args = getopt.getopt(sys.argv[1:], "", ['sbe_binary_dir=', 'img_dir=', 'buildSbePart=', 'hw_ref_image=', 'sbe_binary_filename=', 'scratch_dir=', 'install', 'help'])
except getopt.GetoptError as err:
- print str(err)
+ print(str(err))
usage()
exit(1)
OpenPOWER on IntegriCloud