]> git.ipfire.org Git - pakfire.git/blob - tests/module-load.py
Merge branch 'master' of ssh://git.ipfire.org/pub/git/oddments/pakfire
[pakfire.git] / tests / module-load.py
1 #!/usr/bin/python
2
3 import os
4 import sys
5
6 # Try to load the _pakfire module.
7 import pakfire
8
9 # Check that we didn't load the system's version.
10 topdir = os.environ.get("topdir")
11
12 if not pakfire.__file__.startswith(topdir):
13 print "Wrong module loaded..."
14 sys.exit(1)