summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2017-02-15 21:48:17 -0500
committerDevan Franchini <twitch153@gentoo.org>2017-02-15 22:03:34 -0500
commit62e968d5456f773042d66456c4f87334c3d48709 (patch)
tree98aa50554c3bd45342a8dee61893bb36dc0e1e09
parentconfig.py: Uses EPREFIX variable (diff)
downloadwebapp-config-62e968d5456f773042d66456c4f87334c3d48709.tar.gz
webapp-config-62e968d5456f773042d66456c4f87334c3d48709.tar.bz2
webapp-config-62e968d5456f773042d66456c4f87334c3d48709.zip
db.py: Uses EPREFIX variable
X-Gentoo-Bug: 608018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
-rw-r--r--WebappConfig/db.py7
1 files 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 = '',