Xonshiz / comic-dl

Comic-dl is a command line tool to download manga and comics from various comic and manga sites. Supported sites : readcomiconline.to, mangafox.me, comic naver and many more.
https://github.com/Xonshiz/comic-dl
MIT License
545 stars 68 forks source link

Fix imports #295

Closed StefanUlbrich closed 2 years ago

StefanUlbrich commented 2 years ago

The imports are broken because of relative imports. __main__.py is part of the package which is why it should no be run as an external command. My solution copies the file (which optimally should not be in the package folder but in the project root) and sets the PYTHONPATH such the project is installed. Seems to work

Xonshiz commented 2 years ago

Yeah, that's the issue. I wrote this script when I had started learning python. I'm too lazy to re-structure. But, for the time being, this should do just fine. Thanks a lot for this Stefan! :)