Thanks. That works well. Here is what I did. # In the root controller module:
from turbogears.widgets import register_static_directory
import pkg_resources
register_static_directory("mypackage",
pkg_resources.resource_filename(__name__,
"static"))
# In the external module.
widget.javascript = [JSLink("mypackage", "javascript/openwin.js"), ]
My kid template displays:
<script src="/tg_widgets/mypackage/javascript/openwin.js"
type="text/javascript">
</script>

