diff --git a/sanitytest.py b/sanitytest.py index 86b7dca..04cf0e4 100644 --- a/sanitytest.py +++ b/sanitytest.py @@ -4,10 +4,6 @@ import sys import lxml import lxml.etree from typing import Dict, List, Set, Tuple # noqa F401 - -if len(sys.argv) >= 2: - # Munge import path to insert build location for libvirt mod - sys.path.insert(0, sys.argv[1]) import libvirt diff --git a/setup.py b/setup.py index 729481e..a6a53bb 100755 --- a/setup.py +++ b/setup.py @@ -310,7 +310,7 @@ class my_test(Command): os.environ["PYTHONPATH"] = self.build_platlib if "LIBVIRT_API_COVERAGE" in os.environ: - self.spawn([sys.executable, "sanitytest.py", self.build_platlib]) + self.spawn([sys.executable, "sanitytest.py"]) pytest = self.find_pytest_path() subprocess.check_call([pytest])