From 90bf4578382970675f302d9ee5dc752776d1f31d Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Sun, 12 Mar 2017 14:40:01 +0100 Subject: [PATCH] Use realpath instead of abspath. This allows it to work correctly when symlinked. --- lithium/lithium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lithium/lithium.py b/lithium/lithium.py index d41af1f..56a1abd 100755 --- a/lithium/lithium.py +++ b/lithium/lithium.py @@ -5,7 +5,7 @@ import time import sys -path0 = os.path.dirname(os.path.abspath(__file__)) +path0 = os.path.dirname(os.path.realpath(__file__)) path1 = os.path.abspath(os.path.join(path0, os.pardir, 'interestingness')) sys.path.append(path1) import ximport