Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / build_common / darwin / SConscript
index 06fdac6..ca35673 100644 (file)
@@ -5,7 +5,7 @@
 ##
 import os
 import platform
-import commands
+import subprocess
 from distutils.version import StrictVersion
 
 Import('env')
@@ -13,9 +13,9 @@ Import('env')
 target_arch = env.get('TARGET_ARCH')
 target_os = env.get('TARGET_OS')
 
-tc_path=commands.getoutput('xcode-select -p')
+tc_path=subprocess.getoutput('xcode-select -p')
 
-tc_sdks=commands.getoutput('xcodebuild -showsdks')
+tc_sdks=subprocess.getoutput('xcodebuild -showsdks')
 
 #Find the SDK's that are installed
 sdks=[]