summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/hostinfo2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hostinfo b/bin/hostinfo
index e9a92ec..7fb1e9b 100755
--- a/bin/hostinfo
+++ b/bin/hostinfo
@@ -8,7 +8,7 @@ import yaml
import os
from dns import resolver,reversename
-own_directory = os.path.dirname(os.path.abspath(__file__))
+own_directory = os.path.dirname(os.path.abspath(os.path.realpath(__file__)))
lib = os.path.join(own_directory, '..')
if os.path.exists(os.path.join(lib, 'hostinfo')):
sys.path = [lib] + sys.path