diff --git a/scripts/python-tools.sh b/scripts/python-tools.sh index 975ed9ae..dc4c19c7 100644 --- a/scripts/python-tools.sh +++ b/scripts/python-tools.sh @@ -59,6 +59,11 @@ cmd_create_init() if [ "$sed_extract_cmd" ]; then local src_type types=$(sed "$sed_extract_cmd" $f) for src_type in $types; do + if [ -z "$sed_symbol_filter_cmd" ]; then + dst_type="$src_type" + else + dst_type=$(echo $base $src_type | sed "$sed_symbol_filter_cmd") + fi [ "$sed_symbol_filter_cmd" ] && dst_type=$(echo $base $src_type | sed "$sed_symbol_filter_cmd") echo "from `module_path $base` import $src_type as $dst_type" __add_seen $dst_type