| 1 | """Cold-open a notebook of themed pages in OneNote 2010 and capture what it draws and |
| 2 | reports of each page's styles. |
| 3 | |
| 4 | Usage: native_styles.py NOTEBOOK_DIR OUTPUT_DIR |
| 5 | """ |
| 6 | import sys |
| 7 | from pathlib import Path |
| 8 | |
| 9 | sys.path.insert(0, str(Path(__file__).resolve().parent)) |
| 10 | import native_runner as runner |
| 11 | |
| 12 | if __name__ == '__main__': |
| 13 | notebook, output = Path(sys.argv[1]), Path(sys.argv[2]) |
| 14 | runner.capture(notebook, output, expected_pages=4, author=Path(__file__).resolve().parent / 'native/styles.ps1', |
| 15 | screenshots=True, collect_notebook=True) |