()
| 1090 | return options, args |
| 1091 | |
| 1092 | def main(): |
| 1093 | options, args = handleOptions() |
| 1094 | |
| 1095 | if options['help']: |
| 1096 | print USAGE_MESSAGE |
| 1097 | sys.exit(0) |
| 1098 | |
| 1099 | if options['verbose'] and options['notes']: |
| 1100 | print 'speaker notes mode' |
| 1101 | |
| 1102 | if options['verbose'] and options['handout']: |
| 1103 | print 'handout mode' |
| 1104 | |
| 1105 | if options['verbose'] and options['printout']: |
| 1106 | print 'printout mode' |
| 1107 | |
| 1108 | if not options['fx']: |
| 1109 | print 'suppressing special effects' |
| 1110 | for fileGlobs in args: |
| 1111 | files = glob.glob(fileGlobs) |
| 1112 | if not files: |
| 1113 | print fileGlobs, "not found" |
| 1114 | return |
| 1115 | for datafile in files: |
| 1116 | if os.path.isfile(datafile): |
| 1117 | file = os.path.join(os.getcwd(), datafile) |
| 1118 | notes, handout, printout, cols, verbose, fx = options['notes'], options['handout'], options['printout'], options['cols'], options['verbose'], options['fx'] |
| 1119 | process(file, notes, handout, printout, cols, verbose, options['outDir'], fx=fx) |
| 1120 | else: |
| 1121 | print 'Data file not found:', datafile |
| 1122 | |
| 1123 | if __name__ == '__main__': |
| 1124 | main() |
no test coverage detected