'--git-branch-name', '%s' %(GIT_BRANCH_NAME),
'--revision', '%s' %(revision),
'--dist', '%s' %(dist),
- '--overlay-dir', '%s' % os.path.join(CWD,'kernel-package-overlay'),
+ '--overlay-dir', '%s' % os.path.join(sys.path[0],'kernel-package-overlay'),
]
os.environ.update({'DIST': '%s' %(dist)})
OVERLAY_DIR = options.overlay_dir or '/usr/share/kernel-package'
- # add current dir to python search path
- cmd_folder = os.path.join(os.path.abspath(OVERLAY_DIR), '..')
+ # add directory where current script is in to python search path
+ cmd_folder = sys.path[0]
sys.path.insert(0, cmd_folder)
os.environ['WORKSPACE']=cmd_folder # needed by kernel_persistence
import kernel_persistence