X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Feasy-setup%2Fsampleapp%2Fenrollee%2Ftizen-sdb%2FEnrolleeSample%2FSConscript;h=4f4796dcf04d05630e32272581de652722cdfba0;hb=refs%2Ftags%2Faccepted%2Ftizen%2Funified%2F20230214.171546;hp=75e55b8711672f90a1f6a8d28fb13aeacf3e93a4;hpb=a5b4fe80c18329aa044fc1678d44ba76a45aea5b;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/SConscript b/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/SConscript index 75e55b8..4f4796d 100644 --- a/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/SConscript +++ b/service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/SConscript @@ -25,7 +25,7 @@ import os import platform -print "Inside the Config SConscript" +print("Inside the Config SConscript") # Map of host os and allowed target os (host: allowed target os) host_target_map = { 'linux': ['linux', 'android', 'arduino', 'yocto', 'tizen'], @@ -47,8 +47,8 @@ os_arch_map = { host = platform.system().lower() -if not host_target_map.has_key(host): - print "\nError: Current system (%s) isn't supported\n" % host +if host not in host_target_map: + print("\nError: Current system (%s) isn't supported\n" % host) Exit(1) ###################################################################### @@ -57,7 +57,7 @@ if not host_target_map.has_key(host): target_os = ARGUMENTS.get('TARGET_OS', host).lower() # target os if target_os not in host_target_map[host]: - print "\nError: Unknown target os: %s (Allow values: %s)\n" % (target_os, host_target_map[host]) + print("\nError: Unknown target os: %s (Allow values: %s)\n" % (target_os, host_target_map[host])) Exit(1) default_arch = platform.machine() @@ -131,7 +131,7 @@ if target_os in targets_support_cc: env.AppendUnique(LINKFLAGS = ['--sysroot=' + sys_root]) if prefix or tc_path: - print tc_set_msg + print(tc_set_msg) # Ensure scons be able to change its working directory env.SConscriptChdir(1) @@ -146,12 +146,12 @@ env.SConscriptChdir(1) def __set_dir(env, dir): if not os.path.exists(dir + '/SConstruct'): - print ''' + print(''' *************************************** Error ********************************* * The directory(%s) seems isn't a source code directory, no SConstruct file is * found. * ******************************************************************************* -''' % dir +''' % dir) Exit(1) if env.get('RELEASE'):