[lc_ldap] On n'explose pas si jaro n'existe pas...
This commit is contained in:
parent
5d8f5a9d23
commit
7f098bb45a
1 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,10 @@
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
import os, sys, ldap, re, netaddr, datetime, copy, time, random
|
import os, sys, ldap, re, netaddr, datetime, copy, time, random
|
||||||
from ldap.modlist import addModlist, modifyModlist
|
from ldap.modlist import addModlist, modifyModlist
|
||||||
from Levenshtein import jaro
|
try:
|
||||||
|
from Levenshtein import jaro
|
||||||
|
except ImportError:
|
||||||
|
def jaro(a, b): return 0
|
||||||
sys.path.append('/usr/scripts/gestion')
|
sys.path.append('/usr/scripts/gestion')
|
||||||
|
|
||||||
import config, crans_utils
|
import config, crans_utils
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue