From 541ee10989640f028d777c9341c63573aac4a55f Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 10 Jun 2009 19:30:28 +0200 Subject: 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. --- dmidecode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dmidecode.py') diff --git a/dmidecode.py b/dmidecode.py index b97bb34..30c4d92 100644 --- a/dmidecode.py +++ b/dmidecode.py @@ -1,5 +1,5 @@ import libxml2 -from dmidecodemodule import * +from dmidecodemod import * DMIXML_NODE='n' DMIXML_DOC='d' -- cgit