commit:     62e968d5456f773042d66456c4f87334c3d48709
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 16 02:48:17 2017 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 03:03:34 2017 +0000
URL:        https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=62e968d5

db.py: Uses EPREFIX variable

X-Gentoo-Bug: 608018
X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018

 WebappConfig/db.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/WebappConfig/db.py b/WebappConfig/db.py
index 0fbd34a..698c49a 100644
--- a/WebappConfig/db.py
+++ b/WebappConfig/db.py
@@ -26,6 +26,7 @@ import time, os, os.path, re
 import WebappConfig.wrapper as wrapper
 
 from WebappConfig.debug       import OUT
+from WebappConfig.eprefix     import EPREFIX
 from WebappConfig.permissions import PermissionMap
 
 
@@ -166,7 +167,7 @@ class WebappDB(AppHierarchy):
 
     def __init__(self,
                  fs_root    = '/',
-                 root       = '/var/db/webapps',
+                 root       = EPREFIX + '/var/db/webapps',
                  category   = '',
                  package    = '',
                  version    = '',
@@ -416,8 +417,8 @@ class WebappSource(AppHierarchy):
     '''
 
     def __init__(self,
-                 fs_root    = '/',
-                 root       = '/usr/share/webapps',
+                 fs_root    = EPREFIX + '/',
+                 root       = EPREFIX + '/usr/share/webapps',
                  category   = '',
                  package    = '',
                  version    = '',

Reply via email to