Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / android / android_api / SConscript
index 7e79144..dd5b3a3 100644 (file)
@@ -42,7 +42,7 @@ if 'ALL' in ANDROID_TRANSPORT:
        ANDROID_TRANSPORT_EDR = 1
        ANDROID_TRANSPORT_BLE = 1
        ANDROID_TRANSPORT_NFC = 1
-       print "Android Transport is ALL"
+       print("Android Transport is ALL")
 else:
        if 'BT' in ANDROID_TRANSPORT:
                ANDROID_TRANSPORT_EDR = 1
@@ -62,7 +62,7 @@ else:
        ANDROID_VER = '5.0.1'
 
 if not os.path.exists(android_home + '/platforms/android-' + ANDROID_API_LEVEL) or not os.path.exists(android_home + '/build-tools/20.0.0'):
-    print '''
+    print('''
 ***************************************** Info ********************************
 *   Either 'Android API %s' is not installed or 'Android SDK Build Tools      *
 *   20.0.0' is not installed. The Android SDK Manager will now open. Please   *
@@ -87,7 +87,7 @@ if not os.path.exists(android_home + '/platforms/android-' + ANDROID_API_LEVEL)
 *******************************************************************************
 
 ...Opening Android SDK Manager now. Once you are finished, the build will continue.
-''' % (ANDROID_API_LEVEL, ANDROID_VER, ANDROID_API_LEVEL) 
+''' % (ANDROID_API_LEVEL, ANDROID_VER, ANDROID_API_LEVEL)) 
     os.system(android_home + '/tools/android')
 
 def ensure_libs(target, source, env):