andrewferrier / email2pdf

Script to convert emails to PDF from the command-line, as well as detach recognized attachments. Helps to process incoming emails and assist automatically with a non-paper paperwork workflow. Designed to work in tandem with getmail to convert forwarded emails to PDF automatically.
MIT License
68 stars 35 forks source link

Replaced bad module with symlink #126

Closed sgeulette closed 2 years ago

sgeulette commented 3 years ago

Hi Andrew,

I tried to use the package as a module (#125) but it doesn't work . If you run the new test with others, it works !? But if you run only this single test (python3 -m unittest discover -p test_Direct_Module.py), it fails with the same error I have when using the package as a module in another project.

My solution is to replace email2pdf.py with a symbolic link to email2pdf.

Regards.

PS: I had also added the explanations to release an egg on pypi (https://github.com/andrewferrier/email2pdf/pull/125#issuecomment-793923873). If you have the time...

andrewferrier commented 2 years ago

Thanks!