1 |
commit: af52e7cfec44828b3722f484f3ed4c0ee4fd22d8 |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 16 03:02:44 2017 +0000 |
4 |
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 16 03:03:45 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=af52e7cf |
7 |
|
8 |
server.py: Uses EPREFIX variable |
9 |
|
10 |
X-Gentoo-Bug: 608018 |
11 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018 |
12 |
|
13 |
WebappConfig/server.py | 3 ++- |
14 |
1 file changed, 2 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/WebappConfig/server.py b/WebappConfig/server.py |
17 |
index ec9c141..4c3b571 100644 |
18 |
--- a/WebappConfig/server.py |
19 |
+++ b/WebappConfig/server.py |
20 |
@@ -22,6 +22,7 @@ |
21 |
import os, os.path |
22 |
|
23 |
from WebappConfig.debug import OUT |
24 |
+from WebappConfig.eprefix import EPREFIX |
25 |
from WebappConfig.worker import WebappRemove, WebappAdd |
26 |
from WebappConfig.permissions import get_group, get_user |
27 |
|
28 |
@@ -195,7 +196,7 @@ class Basic: |
29 |
dir = self.__destd |
30 |
dirs = [] |
31 |
|
32 |
- while dir != '/': |
33 |
+ while dir != EPREFIX + '/': |
34 |
dirs.insert(0, dir) |
35 |
dir = os.path.dirname(dir) |