From 913b8703607cbbed0f759a019e7fa1180b709e1a Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 5 Oct 2016 11:22:41 +0200 Subject: [PATCH] Update fenrir.py --- src/fenrir/fenrir.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fenrir/fenrir.py b/src/fenrir/fenrir.py index 606b66d7..e6c9a99d 100755 --- a/src/fenrir/fenrir.py +++ b/src/fenrir/fenrir.py @@ -5,9 +5,10 @@ # By Chrys, Storm Dragon, and contributers. import os, sys, signal, time +import __main__ -if not os.getcwd() in sys.path: - sys.path.append(os.getcwd()) +if not os.path.dirname(os.path.realpath(__main__.__file__)) in sys.path: + sys.path.append(os.path.dirname(os.path.realpath(__main__.__file__))) from core import settingsManager from core import debug