Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / resource / csdk / stack / samples / tizen / build / SConscript
index 225d617..46d7d29 100644 (file)
@@ -43,17 +43,17 @@ env.AppendUnique(CPPDEFINES = ['__TIZEN__'])
 if env.get('WITH_PROXY'):
        env.AppendUnique(CPPDEFINES = ['WITH_CHPROXY'])
 
-print "Given Transport is %s" % transport
-print "Given OS is %s" % target_os
-print "Given MQ is %s" % with_mq
+print("Given Transport is %s" % transport)
+print("Given OS is %s" % target_os)
+print("Given MQ is %s" % with_mq)
 
 gbs_command_prefix = ""
 if (('BLE' in transport) or ('ALL' in transport)):
-       print "Tizen BLE requires tizen 3.0 profile"
+       print("Tizen BLE requires tizen 3.0 profile")
        gbs_command_prefix += "gbsprofile=tizen_4_0_unified_armv7l "
 
 if target_os == 'tizen':
        command = gbs_command_prefix + "./resource/csdk/stack/samples/tizen/build/gbsbuild.sh %s %s %s %s %s %s %s %s %s %s" % (transport, secured, buildsample, release_mode, logging, routing, with_tcp, with_proxy, with_mq, disable_ble_server)
-       print "Created Command is %s" % command
+       print("Created Command is %s" % command)
        gbs_script = env.Command('gbs_build', None, command)
        AlwaysBuild ('gbs_script')