MasterScrat / Chatistics

💬 Python scripts to parse Messenger, Hangouts, WhatsApp and Telegram chat logs into DataFrames.
https://masterscrat.github.io/Chatistics/
MIT License
929 stars 100 forks source link

Fix #21: Fix importing without having to change system path manually. #30

Closed hundredrab closed 4 years ago

hundredrab commented 6 years ago

Hey @MasterScrat, Could you take a look at this when you get the time? Thanks and cheers!

MasterScrat commented 6 years ago

Thanks @hundredrab ! will check it this week

hundredrab commented 5 years ago

Awesome :grin:

MasterScrat commented 5 years ago

Works for me, but I'm not sure how :-/ And IntelliJ complains about the imports. How did you come up with this?

hundredrab commented 5 years ago

Basically hangouts.py is inside parsers/ so importing from parsers/ doesn't make sense to the program. If you do relative imports, they have to be in the place you said they are.

logging shouldn't be imported from init this way, but logging should be done in each file individually. Is that why your IDE is complaining?

MasterScrat commented 4 years ago

This fix has been integrated as part of the latest update!