]>
Commit | Line | Data |
---|---|---|
db5396bb MT |
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) |