Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / build_common / tizenrt / SConscript
index 6325807..f3a8db6 100644 (file)
@@ -24,7 +24,7 @@ import platform
 
 Import('env')
 
-print "Reading tizenrt configuration script"
+print("Reading tizenrt configuration script")
 
 host = platform.system().lower()
 
@@ -33,15 +33,15 @@ default_os_dir = env.GetLaunchDir() + '/../../../os'
 # TIZENRT_OS_DIR build option
 if env.get('TIZENRT_OS_DIR'):
         tizenrt_os_dir = ARGUMENTS.get('TIZENRT_OS_DIR',default_os_dir)
-       print 'TIZENRT_OS_DIR = ' + tizenrt_os_dir
+       print('TIZENRT_OS_DIR = ' + tizenrt_os_dir)
 else:
-        print '''
+        print('''
 *************************************** Info **********************************
 *   Environment variable TIZENRT_OS_DIR must be set to absolute path of       *
 *   tizenrt os directory. To set, please specify TIZENRT_OS_DIR as follows:   *
 *       scons TIZENRT_OS_DIR= <path to tizenrt os directory>                  *
 *******************************************************************************
-'''
+''')
 
 target_arch = env.get('TARGET_ARCH')
 
@@ -59,7 +59,7 @@ env.AppendUnique(CPPDEFINES = ['WITH_POSIX', '__TIZENRT__'])
 # Set device name to __OIC_DEVICE_NAME__
 env.AppendUnique(CPPDEFINES = ['-D__OIC_DEVICE_NAME__=' + "\'\"" + env.get('DEVICE_NAME') + "\"\'"])
 if env.get('LOGGING'):
-       print 'LOGGING is enabled'
+       print('LOGGING is enabled')
        env.AppendUnique(CPPDEFINES = ['TB_LOG'])
 
 
@@ -74,4 +74,4 @@ dep_lib_dir =  '/usr/lib/arm-none-eabi/include'
 env.AppendUnique(CPPPATH = [ dep_src_dir1, dep_src_dir2 ])
 env.AppendUnique(LIBPATH = [ dep_lib_dir ])
 
-print env.get('CPPPATH')
+print(env.get('CPPPATH'))