]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add current dir to python search path
authorHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 12:53:50 +0000 (13:53 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 12:53:50 +0000 (13:53 +0100)
kernel_inpbuilder.py

index 02c672a251a213c521388b89a64cc9435049f799..fce7d1dd0af8c97d897b32c658174dc7ff990329 100644 (file)
@@ -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'