forked from potsda.mn/mobilizon
0c667b13ae
* CSV * PDF (requires Python dependency `weasyprint`) * ODS (requires Python dependency `pyexcel_ods3`) Signed-off-by: Thomas Citharel <tcit@tcit.fr>
8 lines
208 B
Python
8 lines
208 B
Python
import pkg_resources
|
|
|
|
def has_package(package):
|
|
try:
|
|
pkg_resources.get_distribution(package.decode('ascii'))
|
|
return True
|
|
except pkg_resources.DistributionNotFound:
|
|
return False |