s.path is set to the directory name of the input filename. Windows paths include a ":", so line 216 treats the path as a URL and calls urljoin on the path. This fails to join a Windows directory name with a filename. Execution should instead enter the else statement.
results in error:
[Errno 2] No such file or directory: 'csl-terms.rnc'
This appears to be due to changes in #18, specifically: https://github.com/djc/rnc2rng/blob/d5405e85f8889ed54d13bfc494e81b7ffd337103/rnc2rng/parser.py#L215-L220
s.path
is set to the directory name of the input filename. Windows paths include a ":", so line 216 treats the path as a URL and callsurljoin
on the path. This fails to join a Windows directory name with a filename. Execution should instead enter the else statement.fails with
urllib.error.URLError: <urlopen error unknown url type: c>
.Again, this is because absolute paths on Windows contain a ":" and this line: https://github.com/djc/rnc2rng/blob/d5405e85f8889ed54d13bfc494e81b7ffd337103/rnc2rng/parser.py#L693
treats the path as a url. Execution should instead enter the else statement.