jpyamamoto / Issuu-PDF-Downloader

Program on python which downloads Issuu files as PDF
36 stars 15 forks source link

Fix import loop in framework.py #2

Closed 3id0 closed 6 years ago

3id0 commented 6 years ago

This is my first pull request. Please tell me if I did anyhing wrong.


Add main function and call import core.downloader as program from inside of this new main function

Traceback (most recent call last):
  File "framework.py", line 3, in <module>
    import core.downloader as program
  File "Issuu-PDF-Downloader/core/downloader.py", line 4, in <module>
    import core.pdf as pdf
  File "Issuu-PDF-Downloader/core/pdf.py", line 2, in <module>
    from framework import WIDTH_PDF, HEIGHT_PDF, NAME_PDF
  File "Issuu-PDF-Downloader/framework.py", line 3, in <module>
    import core.downloader as program
AttributeError: module 'core' has no attribute 'downloader'