taskbutler icon indicating copy to clipboard operation
taskbutler copied to clipboard

Office Document can't be created - Path error

Open 6uhrmittag opened this issue 5 years ago • 1 comments

Looks like the "Create Office document"-Feature is broken:

  File "/home/marvin/.local/lib/python3.5/site-packages/taskbutler/taskbutler.py", line 69, in createdropboxfile
    with open('./' + templatefile, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '././templates/briefvorlage_standardbriefe.docx'

Should be a regression since it worked at one point.. probably came with moving to $home/.taskbutler.

todo

  • [ ] fix
  • [ ] try to add tests

6uhrmittag avatar Sep 18 '19 05:09 6uhrmittag

possible fixes:

  • require absolute path in config.ini and remove .taskbutler/templates (would make .taskbutler/template obsolete.)
  • better solution is to create absolute path inside taskbutler at todoist_dropbox_templatefile = config.get('dropboxoffice', 'templatefile') line: 377 + make sure the provided path in config.ini is a filename only

6uhrmittag avatar Sep 18 '19 05:09 6uhrmittag