try import pkg_resources VERSION pkg_resources get_distribution YDbf v

1
2
3
4
5
try:
import pkg_resources
VERSION = pkg_resources.get_distribution('YDbf').version
except (ImportError, pkg_resources.DistributionNotFound):
VERSION = 'N/A'