def main(argv):

    try:
        import psyco
        psyco.full()
    except __HOLE__:
        pass

    parser = optparse.OptionParser(description='Process image files into intermediate obj+cropped texture pairs')
    parser.add_option('-s', '--scale', help="scale applied to the model to bring it from pixel space", default=1, type=float)
    parser.add_option('-d', '--depth', help="depth to use", default=0, type=float)
    parser.add_option('-p', '--plane', help="plane to use (XY or XZ)", default='XY', type='choice', choices=['XY', 'XZ'])
    options, arguments = parser.parse_args()

    #generate a list of unique files from the arguments
    files = list(set(sum([glob.glob(x) for x in arguments], [])))
    
    if len(files) == 0:
        print ("No input files specified")
        sys.exit(2)
        
    for file in files:
        ProcessFile(file, options)
dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/unix/mod_tools/tools/scripts/buildcutout.py/main