From 9813344c58b201615ce8d262e2e05d64a97106d4 Mon Sep 17 00:00:00 2001 From: "Christian T. Jacobs" Date: Tue, 30 May 2017 13:09:17 +0100 Subject: [PATCH] Append PyQSO directory to path. --- bin/pyqso | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/pyqso b/bin/pyqso index 7a497d2..d952fdf 100755 --- a/bin/pyqso +++ b/bin/pyqso @@ -30,6 +30,11 @@ import os import os.path import sys import signal + +# This will help Python find the PyQSO modules that need to be imported below. +pyqso_path = os.path.join(os.path.realpath(os.path.dirname(__file__)), os.pardir) +sys.path.insert(0, pyqso_path) + import logging logging.basicConfig(level=logging.INFO) logging.info("PyQSO version 1.0.0")