def handle_PYTHONPATH():
        """
        Add any user set python paths right after the dot or at the beginning
        if dot is not in the paths.
        """
        python_path = os.environ.get('PYTHONPATH', None)  # atomic access for check and retrieval

        if python_path:
            try:
                idxdot = sys.path.index('.') + 1
            except ValueError:
                idxdot = 0
            # Insert in the reversed order so idxdot does not need to change
            for pth in reversed(python_path.split(':')):
                if pth == '':
                    continue
                pth = os.path.expanduser(pth)
                if pth not in sys.path:
                    sys.path.insert(idxdot, pth)

        Add any user set python paths right after the dot or at the beginning
        if dot is not in the paths.
        
system/shruntime.py