Allow bsddb3 for compatibility with Gentoo
It is the same library, but unfortunately Gentoo renamed bsddb to bsddb3 when packaging it. If bsddb is not found, try importing bsddb3 instead, before reporting error.
This commit is contained in:
parent
1fa611a342
commit
cb6c3b4f0e
@ -19,7 +19,10 @@ missing_dep = []
|
||||
try:
|
||||
from bsddb.db import *
|
||||
except:
|
||||
missing_dep.append('bsddb')
|
||||
try:
|
||||
from bsddb3.db import *
|
||||
except:
|
||||
missing_dep.append('bsddb')
|
||||
|
||||
import os, sys, time, re
|
||||
pyw_filename = os.path.basename(__file__)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user