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:
Josh Lehan 2014-01-21 01:54:53 -08:00
parent 1fa611a342
commit cb6c3b4f0e

View File

@ -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__)