Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / auto_build.py
index d40bf2f..2fa72a7 100644 (file)
@@ -19,7 +19,7 @@ Usage:
     clean:
         python %s -c
     '''
-    print (helpstr % (script, script))
+    print((helpstr % (script, script)))
     sys.exit()
 
 def call_scons(build_options, extra_option_str):
@@ -35,7 +35,7 @@ def call_scons(build_options, extra_option_str):
 
     cmd_line += " " + str(extra_option_str)
 
-    print ("Running : " + cmd_line)
+    print(("Running : " + cmd_line))
     sys.stdout.flush()
     exit_code = subprocess.Popen([cmd_line], shell=True).wait()
     if exit_code != 0:
@@ -277,7 +277,7 @@ def build_arduino(flag, extra_option_str):
 def build_tizen(flag, extra_option_str):
     print ("*********** Build for Tizen *************")
     cmd_line = "/bin/sh " + os.getcwd() + "/gbsbuild.sh"
-    print ("Running : " + cmd_line)
+    print(("Running : " + cmd_line))
     subprocess.Popen([cmd_line], shell=True).wait()
 
     print ("*********** Build for Tizen octbstack lib and sample *************")