diff --git a/scripts/python-tools.sh b/scripts/python-tools.sh index f1c8e54d..bc1a0a72 100644 --- a/scripts/python-tools.sh +++ b/scripts/python-tools.sh @@ -25,6 +25,8 @@ cmd_create_init() local e f files base extracted module_path local del="-------------------------- generated by $myname" echo "# >> $del >>" + echo "from pkgutil import extend_path" + echo "__path__ = extend_path(__path__, __name__)" files="$*" for f in $files; do test -d $f && continue