Commits

Jan Borsodi committed b8b4e6e

Moved templates to a share/hob/ subdirectory when installing.

  • Participants
  • Parent commits 3e37ec3

Comments (0)

Files changed (2)

File hob/template.py

     def __init__(self, level=4, subdir="proto", lookup_args={}):
         self.level = level
         self.directories = [os.path.join(root, 'templates'),
-                            os.path.join(sys.prefix, 'templates')]
+                            os.path.join(sys.prefix, 'share/hob/templates')]
         self.lookup = TemplateLookup(directories=self.directories,
                                      module_directory=tempdir(["mako", subdir]),
                                      **lookup_args)
     long_description=open('README').read(),
     platforms=['any'],
     data_files=[
-        ('templates/html-doc',
+        ('share/hob/templates/html-doc',
           ['templates/html-doc/coredoc.css',
            'templates/html-doc/html-doc-footer.mako',
            'templates/html-doc/html-doc-header.mako',
            'templates/html-doc/html-doc-message.mako',
            'templates/html-doc/html-doc-service.mako',
            'templates/html-doc/html-doc-status.mako']),
-         ('templates/js',
+         ('share/hob/templates/js',
           ['templates/js/clientlib_async.js',
            'templates/js/js-build_application.mako',
            'templates/js/js-client-html.mako',
            'templates/js/message_maps.js',
            'templates/js/get_message_maps.js',
            'templates/js/utils.js']),
-         ('templates/proto',
+         ('share/hob/templates/proto',
           ['templates/proto/block_options.mako',
            'templates/proto/enum.mako',
            'templates/proto/inline_options.mako',
            'templates/proto/message.mako',
            'templates/proto/package.mako',
            'templates/proto/service.mako']),
-         ('templates/rst-doc',
+         ('share/hob/templates/rst-doc',
           ['templates/rst-doc/package.mako',
            'templates/rst-doc/rst-doc-service-index.mako',
            'templates/rst-doc/rst-doc-service.mako',
            'templates/rst-doc/rst-proto-defs.mako']),
-         ('templates',
+         ('share/hob/templates',
           ['templates/proto/google/protobuf/descriptor.proto',
            'templates/proto/scope_descriptor.proto']),
       ],