Commits

Jan Borsodi committed b8b4e6e

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

Comments (0)

Files changed (2)

     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']),
       ],
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.