summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Morel <xmo@tinyerp.com>2009-12-12 17:00:04 +0100
committerXavier Morel <xmo@tinyerp.com>2009-12-12 17:00:04 +0100
commit7daf1bc09a7ce4717f6526625992ff6d99a05b68 (patch)
tree583344e8e6402dbb3843802b7cdaf2068a3a4281
parent5f2c53c0af17a70ec59d419fcc9d12002b193667 (diff)
[imp] use imp.find_module instead of exec('import %s')
bzr revid: xmo@tinyerp.com-20091212160004-0u8m6v9w3o9p97hp
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index f5d5adce5c5..87dd1781dec 100755
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,7 @@ def check_modules():
ok = True
for modname, desc in required_modules:
try:
- exec('import %s' % modname)
+ imp.find_module(modname)
except ImportError:
ok = False
print 'Error: python module %s (%s) is required' % (modname, desc)