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'
logger.debug('changing dir to %s' %(GIT_TARGET_DIR))
os.chdir(GIT_TARGET_DIR)
+ # add current dir to python search path
+ cmd_folder = os.path.join(os.path.abspath(OVERLAY_DIR), '..')
+ sys.path.insert(0, cmd_folder)
+ import kernel_persistence
+
if has_extra_modules():
if not install_extra_modules():
logger.error('Error during installation of extra kernel modules')