File indexing completed on 2025-01-05 04:00:26

0001 #!/usr/bin/env python3
0002 
0003 import sys
0004 import os
0005 import argparse
0006 sys.path.insert(0, os.path.join(
0007     os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
0008     "lib"
0009 ))
0010 from lottie.exporters import exporters
0011 from lottie.importers import importers
0012 from lottie.utils.stripper import float_strip, heavy_strip
0013 from lottie import __version__
0014 
0015 
0016 def print_loader(loader, type):
0017     print("* Available %s:" % type)
0018     for porter in loader:
0019         print("  * %s" % porter.name)
0020     if loader.failed_modules:
0021         print("* Failed %s:" % type)
0022         for name, missing in loader.failed_modules.items():
0023             print("  * %s (missing %s)" % (name, missing))
0024 
0025 
0026 print("* Python version: %s" % sys.version.replace("\n", " "))
0027 print("* Python Lottie version: %s" % __version__)
0028 print_loader(importers, "Importers")
0029 print_loader(exporters, "Exporters")