summaryrefslogtreecommitdiff
path: root/tests/test_aptsources.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_aptsources.py')
-rw-r--r--tests/test_aptsources.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index e56761f3..331df935 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -20,6 +20,8 @@ class TestAptSources(unittest.TestCase):
apt_pkg.config.set("Dir::Etc::sourceparts", "/xxx")
if os.path.exists("./build/data/templates"):
self.templates = os.path.abspath("./build/data/templates")
+ elif os.path.exists("../build/data/templates"):
+ self.templates = os.path.abspath("../build/data/templates")
else:
self.templates = "/usr/share/python-apt/templates/"