subprojects/meson-docs/docs/genrefman.py
raw| 1 | #!/usr/bin/env python3 |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Copyright 2021 The Meson development team |
| 4 | |
| 5 | # Hack to make relative imports to mlog possible |
| 6 | from pathlib import Path |
| 7 | import sys |
| 8 | root = Path(__file__).absolute().parents[1] |
| 9 | sys.path.insert(0, str(root)) |
| 10 | |
| 11 | # Now run the actual code |
| 12 | from refman.main import main |
| 13 | |
| 14 | if __name__ == '__main__': |
| 15 | raise SystemExit(main()) |