# -*- coding: utf-8 -*-

"""
doxieapi.__main__
~~~~~~~~~~~~~~~~~

Application that runs when executing the module with -m.
"""

import os

from .api import DoxieScanner


def main():
    """
    Grab all available scan images and save them to the current working
    directory.
    """
    for doxie in DoxieScanner.discover():
        print("Discovered {}.".format(doxie))
        for scan in doxie.download_scans(os.getcwd()):
            print("Saved {}".format(scan))


if __name__ == '__main__':
    main()

# -*- coding: utf-8 -*-

"""
doxieapi.__main__
~~~~~~~~~~~~~~~~~

Application that runs when executing the module with -m.
"""

import os

from .api import DoxieScanner


def main():
    """
    Grab all available scan images and save them to the current working
    directory.
    """
    for doxie in DoxieScanner.discover():
        print("Discovered {}.".format(doxie))
        for scan in doxie.download_scans(os.getcwd()):
            print("Saved {}".format(scan))


if __name__ == '__main__':
    main()

# -*- coding: utf-8 -*- doxieapi.__main__ ~~~~~~~~~~~~~~~~~  Application that runs when executing the module with -m. Grab all available scan images and save them to the current working     directory.