diff options
author | Anthon van der Neut <anthon@mnt.org> | 2023-05-01 19:13:50 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2023-05-01 19:13:50 +0200 |
commit | 8b731994b1543d7886af85f926d9eea5a22d0732 (patch) | |
tree | 3553d4cbc80b541484d7a3f39e00cdcfd8f9d030 /_doc | |
parent | 45111ba0b67e8619265d89f3202635e62c13cde6 (diff) | |
download | ruamel.yaml-8b731994b1543d7886af85f926d9eea5a22d0732.tar.gz |
retrofitted 0.18 changes
Diffstat (limited to '_doc')
-rw-r--r-- | _doc/conf.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/_doc/conf.py b/_doc/conf.py index 0efcc64..67fcc0e 100644 --- a/_doc/conf.py +++ b/_doc/conf.py @@ -28,7 +28,7 @@ import os # NOQA # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = [] +extensions = [] # type: ignore # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -74,15 +74,13 @@ class ryd2rst: if True: try: - from ryd.__main__ import RYDCmd + from ryd.__main__ import main from pathlib import Path oldargv = sys.argv for fn in Path('.').glob('*.ryd'): sys.argv = ['ryd', 'convert', '--no-pdf', str(fn)] - rc = RYDCmd() - rc.parse_args() - print(sys.argv, '->', rc.run()) + main(sys.argv) sys.argv = oldargv except Exception as e: |