]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
oh well
authorHolger Levsen <holger@layer-acht.org>
Wed, 9 Nov 2011 16:25:14 +0000 (17:25 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 9 Nov 2011 16:25:14 +0000 (17:25 +0100)
kernel_inpbuilder.py

index 4116f628dc511abb925417f0d7b9d2f8dcdba067..1462fad33dfa7fbd6e37cf699dfb31a7745f1b36 100644 (file)
@@ -353,7 +353,7 @@ if __name__ == '__main__':
     OVERLAY_DIR = options.overlay_dir or '/usr/share/kernel-package'
 
     # add directory where current script is in to python search path
-    cmd_folder = sys.path[0]
+    cmd_folder = os.path.join(OVERLAY_DIR,'..')
     sys.path.insert(0, cmd_folder)
     os.environ['WORKSPACE']=cmd_folder  # needed by kernel_persistence
     import kernel_persistence