tpl4md icon indicating copy to clipboard operation
tpl4md copied to clipboard

Missing README files in pdf-cplx

Open peterkuma opened this issue 11 years ago • 0 comments

Files README_pdf-cplx.md and README_pdf-cplx.pdf are missing in share/templates/pdf-cplx/doc. As a result, creating a new project with:

bin/tpl4md -t pdf-cplx -o /path/to/project

fails with an exception:

Traceback (most recent call last): File "bin/tpl4md", line 232, in parseOptions() File "bin/tpl4md", line 136, in parseOptions main(args.types, args.output) File "bin/tpl4md", line 225, in main template_generator.generate(project_dir) File "/mnt/data2/packages/tpl4md/bin/../share/templates/pdf-cplx/generator.py", line 53, in generate copy(local_path + "/doc/README_pdf-cplx.md", out_path + "/doc/") File "/usr/lib/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/usr/lib/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: '/mnt/data2/packages/tpl4md/share/templates/pdf-cplx/doc/README_pdf-cplx.md'

Creating empty placeholders for the two files allows the command to pass. Perhaps tpl4md should only warn on missing README files as they are not essential.

peterkuma avatar Oct 19 '13 13:10 peterkuma