nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

set-tmpl-path.patch (764B)


      1 diff --git i/tc-viewer w/tc-viewer
      2 index bf226d2..2ff2735 100755
      3 --- i/tc-viewer
      4 +++ w/tc-viewer
      5 @@ -7,6 +7,8 @@ import sys
      6  
      7  import bottle
      8  
      9 +bottle.TEMPLATE_PATH = "@site_packages@/views"
     10 +
     11  from tilecloud import BoundingPyramid, Bounds, Tile, TileCoord, TileStore
     12  from tilecloud.filter.contenttype import ContentTypeAdder
     13  
     14 @@ -146,12 +148,12 @@ def openwebglobe():
     15  
     16  @bottle.route("/favicon.ico")
     17  def favicon():
     18 -    return bottle.static_file("favicon.ico", root="static")
     19 +    return bottle.static_file("favicon.ico", root="@site_packages@/static")
     20  
     21  
     22  @bottle.route("/static/<path:re:.*>")
     23  def static(path):
     24 -    return bottle.static_file(path, root="static")
     25 +    return bottle.static_file(path, root="@site_packages@/static")
     26  
     27  
     28  @bottle.route("/")