Returning data formatters to their previous working condition - Plus fixing an issue that was preventing Python oneliners from executing
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@155563 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/finish-swig-Python-LLDB.sh b/scripts/Python/finish-swig-Python-LLDB.sh
index 3f02495..a86aeda 100755
--- a/scripts/Python/finish-swig-Python-LLDB.sh
+++ b/scripts/Python/finish-swig-Python-LLDB.sh
@@ -147,6 +147,8 @@
function create_python_package {
package_dir="${framework_python_dir}$1"
package_files="$2"
+ package_name=`echo $1 | tr '/' '.'`
+ package_name="lldb${package_name}"
if [ ! -d "${package_dir}" ]
then
@@ -179,6 +181,8 @@
fi
done
echo "]" >> "${package_init_file}"
+ echo "for x in __all__:" >> "${package_init_file}"
+ echo " __import__('${package_name}.'+x)" >> "${package_init_file}"
fi