summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/scripts/finishSwigWrapperClasses.py19
-rwxr-xr-xlldb/scripts/prepare_bindings.py12
2 files changed, 2 insertions, 29 deletions
diff --git a/lldb/scripts/finishSwigWrapperClasses.py b/lldb/scripts/finishSwigWrapperClasses.py
index 20c066aa386..8d7d19ef1bd 100644
--- a/lldb/scripts/finishSwigWrapperClasses.py
+++ b/lldb/scripts/finishSwigWrapperClasses.py
@@ -253,24 +253,7 @@ def run_post_process_for_each_script_supported(vDictArgs):
return (-8, strScriptDirNotFound)
# Look for any script language directories to build for
- listDirs = []
- nDepth = 1
- for strPath, listDirs, listFiles in os.walk(strScriptDir):
- nDepth = nDepth - 1
- if nDepth == 0:
- break
-
- # Skip the directory that contains the interface files.
- listDirs.remove('interface')
- # and the svn directory.
- if '.svn' in listDirs:
- listDirs.remove('.svn')
-
- if gbDbgFlag:
- sys.stdout.write(strScriptLangsFound)
- for dir in listDirs:
- sys.stdout.write(dir)
- print("\n")
+ listDirs = ["Python"]
# Iterate script directory find any script language directories
for scriptLang in listDirs:
diff --git a/lldb/scripts/prepare_bindings.py b/lldb/scripts/prepare_bindings.py
index 0a0721157f1..3165f232e5e 100755
--- a/lldb/scripts/prepare_bindings.py
+++ b/lldb/scripts/prepare_bindings.py
@@ -71,17 +71,7 @@ def prepare_all_bindings(options):
logging.error("failed to find scripts dir: '%s'", scripts_dir)
sys.exit(-8)
- # Collect list of child directories. We expect there to be one
- # for each supported script language.
- child_dirs = [f for f in os.listdir(scripts_dir)
- if os.path.isdir(os.path.join(scripts_dir, f))]
-
- # Remove directories that do not represent script languages.
- for removal_dir in [".svn", "interface", "__pycache__", "sphinx", "swig_bot_lib"]:
- if removal_dir in child_dirs:
- child_dirs.remove(removal_dir)
-
- logging.info("found script directories: %s", child_dirs)
+ child_dirs = ["Python"]
# Iterate script directory find any script language directories
for script_lang in child_dirs:
OpenPOWER on IntegriCloud