diff options
| author | Xavier Morel <xmo@tinyerp.com> | 2009-12-12 17:00:04 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@tinyerp.com> | 2009-12-12 17:00:04 +0100 |
| commit | 7daf1bc09a7ce4717f6526625992ff6d99a05b68 (patch) | |
| tree | 583344e8e6402dbb3843802b7cdaf2068a3a4281 /setup.py | |
| parent | 5f2c53c0af17a70ec59d419fcc9d12002b193667 (diff) | |
[imp] use imp.find_module instead of exec('import %s')
bzr revid: xmo@tinyerp.com-20091212160004-0u8m6v9w3o9p97hp
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
