pyqtgraph/exporters/__init__.py
Luke Campagnola b78662c33e Minor updates for exporting
- curves enable antialiasing when exporting to image
  - plotitems hide button during export
2012-03-23 02:41:10 -04:00

26 lines
621 B
Python

Exporters = []
import os, sys
d = os.path.split(__file__)[0]
files = []
for f in os.listdir(d):
if os.path.isdir(os.path.join(d, f)):
files.append(f)
elif f[-3:] == '.py' and f not in ['__init__.py', 'Exporter.py']:
files.append(f[:-3])
for modName in files:
mod = __import__(modName, globals(), locals(), fromlist=['*'])
if hasattr(mod, '__all__'):
names = mod.__all__
else:
names = [n for n in dir(mod) if n[0] != '_']
for k in names:
if hasattr(mod, k):
Exporters.append(getattr(mod, k))
def listExporters():
return Exporters[:]