path = sys.path.copy()
for p in path:
    for root, dirs, files in walk(p):
        if p is not root:
            sys.path.append(root)
How to embed python in an Objective-C OS X application for plugins?