from __future__ import print_function
from . import *

if __name__ == "__main__":
    parser = OptionParser()
    parser.set_usage(help_str)
    options, args = parser.parse_args()
    if len(args) == 0:
        print( "Sorry, no file specified." )
    for file_to_label in args:
        if not os.path.exists(file_to_label):
            print ( "Sorry, the file you specified (%s) does not exist." %
                    file_to_label )
        else:
            P = Pinner(file_to_label)
            P.window.mainloop()
