diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-07-18 08:48:26 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-07-18 08:48:26 +0200 |
commit | d40667d567cbc65182dc5daa822ab1287dd97e1a (patch) | |
tree | 290cde2c31c9d3bd72c72b1ade4c632d198cd0f5 | |
parent | d4bd035211518be52074a49e437b0a50886d3888 (diff) | |
download | ruamel.yaml-d40667d567cbc65182dc5daa822ab1287dd97e1a.tar.gz |
testing conf.py
-rw-r--r-- | _doc/conf.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/_doc/conf.py b/_doc/conf.py index af9e11d..b46950c 100644 --- a/_doc/conf.py +++ b/_doc/conf.py @@ -56,21 +56,22 @@ author = u'Anthon van der Neut' try: from ruamel.yaml import __version__, version_info # The short X.Y version. - version = '.'.join([str(l) for l in version_info[:2]]) + version = '.'.join([str(l) for l in version_info[:3]]) # The full version, including alpha/beta/rc tags. - version = release = __version__ + release = version # = __version__ except Exception as e: print('exception', e) version = release = 'dev' print('ruamel.yaml version', version) -print('cwd:', os.getcwd()) +# print('cwd:', os.getcwd()) +# current working directory is the one with `conf.py` ! try: from ryd.__main__ import RYDCmd from ruamel.std.pathlib import Path oldargv = sys.argv for fn in Path('.').glob('*.ryd'): - sys.argv = ['ryd', 'convert', fn] + sys.argv = ['ryd', 'convert', str(fn)] rc = RYDCmd() rc.parse_args() print(*sys.argv, '->', rc.run()) |