import sys # for frappy and linsetools: for path in '/sq_sw/linse/frappy', '/sq_sw/linse': if path not in sys.path: sys.path.append(path)