Ensure that lldb/runtime is not a dead point in the Python package hierarchy - This is a first preliminary step in fixing data formatters after Greg's changes to the Python resources on-disk layout

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@155525 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/finish-swig-Python-LLDB.sh b/scripts/Python/finish-swig-Python-LLDB.sh
index 739d41e..c6a4651 100755
--- a/scripts/Python/finish-swig-Python-LLDB.sh
+++ b/scripts/Python/finish-swig-Python-LLDB.sh
@@ -191,14 +191,12 @@
 package_files="${SRC_ROOT}/source/Interpreter/embedded_interpreter.py"
 create_python_package "" "${package_files}"
 
-
 # lldb/formatters/cpp
 package_files="${SRC_ROOT}/examples/synthetic/gnu_libstdcpp.py
 ${SRC_ROOT}/examples/synthetic/libcxx.py"
 create_python_package "/formatters/cpp" "${package_files}"
 
 # lldb/formatters/objc
-
 package_files="${SRC_ROOT}/examples/summaries/cocoa/Selector.py
 ${SRC_ROOT}/examples/summaries/objc.py
 ${SRC_ROOT}/examples/summaries/cocoa/Class.py
@@ -221,11 +219,17 @@
 create_python_package "/formatters/objc" "${package_files}"
 
 
+# make an empty __init__.py in lldb/runtime
+# this is required for Python to recognize lldb.runtime as a valid package
+# (and hence, lldb.runtime.objc as a valid contained package)
+create_python_package "/runtime" ""
+
 # lldb/runtime/objc
 package_files="${SRC_ROOT}/examples/summaries/cocoa/objc_runtime.py"
 create_python_package "/runtime/objc" "${package_files}"
 
 # lldb/formatters
+# having these files copied here ensures that lldb/formatters is a valid package itself
 package_files="${SRC_ROOT}/examples/summaries/cocoa/cache.py
 ${SRC_ROOT}/examples/summaries/cocoa/metrics.py
 ${SRC_ROOT}/examples/summaries/cocoa/attrib_fromdict.py