From: Holger Levsen Date: Wed, 2 Nov 2011 12:53:50 +0000 (+0100) Subject: add current dir to python search path X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=8e0cca1a64a6dd7e01f7d68edf2bbf56cbc3069b;p=profitbricks%2Fjenkins-build-scripts.git add current dir to python search path --- 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'