diff options
author | Enrico Granata <egranata@apple.com> | 2012-04-25 17:53:41 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-04-25 17:53:41 +0000 |
commit | 7d2222175914bee03d2aa191427d6c397cc2d617 (patch) | |
tree | 36f6ef4991f38a8ac53544debe12b3f59edfcab1 /lldb/scripts/Python/finish-swig-Python-LLDB.sh | |
parent | 4ff88c67e0f4904d0f99c97e5b348cd202fca3e3 (diff) | |
download | bcm5719-llvm-7d2222175914bee03d2aa191427d6c397cc2d617.tar.gz bcm5719-llvm-7d2222175914bee03d2aa191427d6c397cc2d617.zip |
Returning data formatters to their previous working condition - Plus fixing an issue that was preventing Python oneliners from executing
llvm-svn: 155563
Diffstat (limited to 'lldb/scripts/Python/finish-swig-Python-LLDB.sh')
-rwxr-xr-x | lldb/scripts/Python/finish-swig-Python-LLDB.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh index 3f024950db6..a86aeda364e 100755 --- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh +++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh @@ -147,6 +147,8 @@ fi 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 @@ function create_python_package { fi done echo "]" >> "${package_init_file}" + echo "for x in __all__:" >> "${package_init_file}" + echo " __import__('${package_name}.'+x)" >> "${package_init_file}" fi |