parent
7cc87be4bb
commit
185de8eeaa
|
@ -15,11 +15,7 @@ import platform
|
|||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
if sys.version_info.major == 2:
|
||||
import commands as subprocess
|
||||
else:
|
||||
import subprocess
|
||||
import subprocess
|
||||
|
||||
try:
|
||||
# Just try for LLDB in case PYTHONPATH is already correctly setup
|
||||
|
@ -30,7 +26,7 @@ except ImportError:
|
|||
platform_system = platform.system()
|
||||
if platform_system == 'Darwin':
|
||||
# On Darwin, try the currently selected Xcode directory
|
||||
xcode_dir = subprocess.getoutput("xcode-select --print-path")
|
||||
xcode_dir = subprocess.check_output("xcode-select --print-path", shell=True)
|
||||
if xcode_dir:
|
||||
lldb_python_dirs.append(
|
||||
os.path.realpath(
|
||||
|
|
|
@ -16,14 +16,10 @@ import platform
|
|||
import re
|
||||
import resource
|
||||
import sys
|
||||
import subprocess
|
||||
import time
|
||||
import types
|
||||
|
||||
if sys.version_info.major == 2:
|
||||
import commands as subprocess
|
||||
else:
|
||||
import subprocess
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Code that auto imports LLDB
|
||||
#----------------------------------------------------------------------
|
||||
|
@ -36,7 +32,7 @@ except ImportError:
|
|||
platform_system = platform.system()
|
||||
if platform_system == 'Darwin':
|
||||
# On Darwin, try the currently selected Xcode directory
|
||||
xcode_dir = subprocess.getoutput("xcode-select --print-path")
|
||||
xcode_dir = subprocess.check_output("xcode-select --print-path", shell=True)
|
||||
if xcode_dir:
|
||||
lldb_python_dirs.append(
|
||||
os.path.realpath(
|
||||
|
|
|
@ -14,11 +14,7 @@ import optparse
|
|||
import os
|
||||
import platform
|
||||
import sys
|
||||
|
||||
if sys.version_info.major == 2:
|
||||
import commands as subprocess
|
||||
else:
|
||||
import subprocess
|
||||
import subprocess
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Code that auto imports LLDB
|
||||
|
@ -32,7 +28,7 @@ except ImportError:
|
|||
platform_system = platform.system()
|
||||
if platform_system == 'Darwin':
|
||||
# On Darwin, try the currently selected Xcode directory
|
||||
xcode_dir = subprocess.getoutput("xcode-select --print-path")
|
||||
xcode_dir = subprocess.check_output("xcode-select --print-path", shell=True)
|
||||
if xcode_dir:
|
||||
lldb_python_dirs.append(
|
||||
os.path.realpath(
|
||||
|
|
|
@ -16,11 +16,7 @@ import os
|
|||
import re
|
||||
import signal
|
||||
import sys
|
||||
|
||||
if sys.version_info.major == 2:
|
||||
import commands as subprocess
|
||||
else:
|
||||
import subprocess
|
||||
import subprocess
|
||||
|
||||
try:
|
||||
# Just try for LLDB in case PYTHONPATH is already correctly setup
|
||||
|
@ -31,7 +27,7 @@ except ImportError:
|
|||
platform_system = platform.system()
|
||||
if platform_system == 'Darwin':
|
||||
# On Darwin, try the currently selected Xcode directory
|
||||
xcode_dir = subprocess.getoutput("xcode-select --print-path")
|
||||
xcode_dir = subprocess.check_output("xcode-select --print-path", shell=True)
|
||||
if xcode_dir:
|
||||
lldb_python_dirs.append(
|
||||
os.path.realpath(
|
||||
|
|
Loading…
Reference in New Issue