Switch to side-by-side view
--- a/Allura/allura/config/resources.py +++ b/Allura/allura/config/resources.py @@ -22,3 +22,13 @@ except ImportError: log.warning('Cannot import entry point %s', ep) raise + for ep in pkg_resources.iter_entry_points('allura.theme'): + try: + manager.register_directory( + 'theme/%s' % ep.name, + pkg_resources.resource_filename( + ep.module_name, + os.path.join('nf', ep.name))) + except ImportError: + log.warning('Cannot import entry point %s', ep) + raise