Move all root .py files into playscii/ package directory. Rename playscii.py to app.py, add __main__.py entry point. Convert bare imports to relative (within package) and absolute (in formats/ and games/). Data dirs stay at root.
16 lines
519 B
Python
16 lines
519 B
Python
from playscii.art_export import ArtExporter
|
|
from playscii.image_export import export_animation
|
|
|
|
|
|
class GIFExporter(ArtExporter):
|
|
format_name = "Animated GIF image"
|
|
format_description = """
|
|
Animated GIF of all frames in current document, with
|
|
transparency and proper frame timings.
|
|
"""
|
|
file_extension = "gif"
|
|
|
|
def run_export(self, out_filename, options):
|
|
# heavy lifting done by image_export module
|
|
export_animation(self.app, self.app.ui.active_art, out_filename)
|
|
return True
|