diff options
author | David Sommerseth <davids@redhat.com> | 2009-06-10 19:30:28 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-06-10 19:30:28 +0200 |
commit | 541ee10989640f028d777c9341c63573aac4a55f (patch) | |
tree | 830a829d75d1f3cbcbf1aede838f4238523745fe /unit-tests | |
parent | a05ca0f0e588031bde35143ba27481f2c5fdea70 (diff) | |
download | python-dmidecode-541ee10989640f028d777c9341c63573aac4a55f.tar.gz python-dmidecode-541ee10989640f028d777c9341c63573aac4a55f.tar.xz python-dmidecode-541ee10989640f028d777c9341c63573aac4a55f.zip |
Discovered another issue with Python and imports
The shard library got renamed to dmidecodemodule.so, and this was not
clever. When you do 'import dmidecode' in Python, it will look for
files in this order:
dmidecode
dmidecode.so
dmidecodemodule.so
dmidecode.py
dmidecode.pyc
This is of course a problem when the wrapper introduced in commit
65c9384ec9b6e265aba11227ffa37ae7a6a787d1 is called dmidecode.py, and
Python attempts to load dmidecodemodule.so before dmidecode.py.
To solve this, dmidecodemodule.so is now renamed to dmidecodemod.so.
Diffstat (limited to 'unit-tests')
-rwxr-xr-x | unit-tests/unit | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unit-tests/unit b/unit-tests/unit index 8156945..ac3edab 100755 --- a/unit-tests/unit +++ b/unit-tests/unit @@ -80,6 +80,7 @@ sys.stdout.write(LINE) try: sys.stdout.write(" * Importing module...") import libxml2 +# from dmidecodemod import * import dmidecode passed() |