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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index 3ef20f64..331df935 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -18,7 +18,9 @@ class TestAptSources(unittest.TestCase):
apt_pkg.config.set("APT::Architecture", "i386")
apt_pkg.config.set("Dir::Etc", os.getcwd())
apt_pkg.config.set("Dir::Etc::sourceparts", "/xxx")
- if os.path.exists("../build/data/templates"):
+ 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/"