summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2017-02-15 22:02:44 -0500
committerDevan Franchini <twitch153@gentoo.org>2017-02-15 22:03:45 -0500
commitaf52e7cfec44828b3722f484f3ed4c0ee4fd22d8 (patch)
tree69af88cb149a10c924c6ae89c929bbedf0b811be
parentdb.py: Uses EPREFIX variable (diff)
downloadwebapp-config-af52e7cfec44828b3722f484f3ed4c0ee4fd22d8.tar.gz
webapp-config-af52e7cfec44828b3722f484f3ed4c0ee4fd22d8.tar.bz2
webapp-config-af52e7cfec44828b3722f484f3ed4c0ee4fd22d8.zip
server.py: Uses EPREFIX variable
X-Gentoo-Bug: 608018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
-rw-r--r--WebappConfig/server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebappConfig/server.py b/WebappConfig/server.py
index ec9c141..4c3b571 100644
--- a/WebappConfig/server.py
+++ b/WebappConfig/server.py
@@ -22,6 +22,7 @@
import os, os.path
from WebappConfig.debug import OUT
+from WebappConfig.eprefix import EPREFIX
from WebappConfig.worker import WebappRemove, WebappAdd
from WebappConfig.permissions import get_group, get_user
@@ -195,7 +196,7 @@ class Basic:
dir = self.__destd
dirs = []
- while dir != '/':
+ while dir != EPREFIX + '/':
dirs.insert(0, dir)
dir = os.path.dirname(dir)