import os

from girder.utility.webroot import Webroot

from .rest_slicer_cli import(
    genRESTEndPointsForSlicerCLIsInSubDirs,
    genRESTEndPointsForSlicerCLIsInDocker
)

_template = os.path.join(
    os.path.dirname(__file__),
    'webroot.mako'
)


def load(info):
    girderRoot = info['serverRoot']
    histomicsRoot = Webroot(_template)
    histomicsRoot.updateHtmlVars(girderRoot.vars)
    histomicsRoot.updateHtmlVars({'title': 'HistomicsTK'})

    info['serverRoot'].histomicstk = histomicsRoot
    info['serverRoot'].girder = girderRoot

    # cliRootDir = os.path.dirname(__file__)
    # genRESTEndPointsForSlicerCLIsInSubDirs(info, 'HistomicsTK', cliRootDir)

    genRESTEndPointsForSlicerCLIsInDocker(info,
                                          'HistomicsTK',
                                          'dsarchive/histomicstk')
@@ -666,24 +666,28 @@
 ootDir)%0A%0A   
+ _ =
  genRESTEndP
@@ -717,112 +717,37 @@
 ker(
-info,%0A                                          'HistomicsTK',%0A                                         
+%0A        info, 'HistomicsTK',
  'ds
@@ -766,9 +766,14 @@
 omicstk'
+%0A    
 )

Switch to generating REST end points from docker image