[csw-devel] SF.net SVN: gar:[17461] csw/mgar/gar/v2/lib/web/pkgdb_web.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Mar 19 15:47:09 CET 2012
Revision: 17461
http://gar.svn.sourceforge.net/gar/?rev=17461&view=rev
Author: wahwah
Date: 2012-03-19 14:47:09 +0000 (Mon, 19 Mar 2012)
Log Message:
-----------
pkgdb-web: Relative template path
The script will be able to find the templates relative to its position.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/web/pkgdb_web.py
Modified: csw/mgar/gar/v2/lib/web/pkgdb_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/pkgdb_web.py 2012-03-19 14:46:28 UTC (rev 17460)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py 2012-03-19 14:47:09 UTC (rev 17461)
@@ -50,8 +50,10 @@
)
urls = urls_html + urls_rest
-render = web.template.render('/home/web/bin/gar/'
- 'lib/web/templates/')
+render = web.template.render(
+ os.path.join(
+ os.path.split(__file__)[0],
+ "lib/web/templates/"))
class PkgStatsEncoder(json.JSONEncoder):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list