Skip to content

Commit

Permalink
Make sure __file__ resolves correctly for symlinks too
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmassay committed Oct 25, 2018
1 parent 102e2e7 commit 1e089ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kindleunpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import os

__path__ = ["lib", os.path.dirname(__file__), "kindleunpack"]
__path__ = ["lib", os.path.dirname(os.path.realpath(__file__)), "kindleunpack"]

import sys
import codecs
Expand Down

0 comments on commit 1e089ec

Please sign in to comment.