Hi,
I have a process which watches for movement in a folder and calls rapydcss, rapydml etc on relevant files as they're updated. As a result, the 'location' that is passed to rapydcss/rapydml is something of the form 'my_directory/static/css/style.css' or 'my_directory/templates/template.pyml'. It seems that when when calling rapydml with a location like this, it doesn't compile correctly. The following error is also thrown:
Traceback (most recent call last):
File "/usr/local/bin/rapydml", line 45, in <module>
output.write(html.parse(
args.input.name))
File "/usr/local/lib/python2.7/dist-packages/rapydml_scripts/compiler.py", line 1082, in parse
with open(filename, 'r') as source:
IOError: [Errno 2] No such file or directory: my_directory/template.pyml'
It works fine if I call rapydml from within my 'my_directory' on template.pyml and it is of note that rapydcss works fine in this regard.
Cheers,
Pete Mills