OrkoHunter / ping-me

A cross platform personalized Ping
Apache License 2.0
192 stars 21 forks source link

Fix location of data file finder #3

Closed OrkoHunter closed 8 years ago

OrkoHunter commented 8 years ago

This was tricky. The normal open() reads the file location relative to where it is called from. But in cases we need to open a file relative to the location of the module, we can use the the trick of using the location of __file__. It surely won't work from interpreters.