diff options
Diffstat (limited to 'tests/test_aptsources.py')
| -rw-r--r-- | tests/test_aptsources.py | 4 |
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/" |
