From 8e0cca1a64a6dd7e01f7d68edf2bbf56cbc3069b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 2 Nov 2011 13:53:50 +0100 Subject: [PATCH] add current dir to python search path --- kernel_inpbuilder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index 02c672a..fce7d1d 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -15,6 +15,10 @@ from glob import glob from logging import Formatter from ftplib import FTP from multiprocessing import cpu_count +# add current dir to python search path +cmd_folder = os.path.dirname(os.path.abspath(__file__)) +if cmd_folder not in sys.path: + sys.path.insert(0, cmd_folder) import kernel_persistence __version__ = '0.0.2' -- 2.39.5