Skip to content

Commit 1e089ec

Browse files
committed
Make sure __file__ resolves correctly for symlinks too
1 parent 102e2e7 commit 1e089ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kindleunpack.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import os
88

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

1111
import sys
1212
import codecs

0 commit comments

Comments
 (0)