def remove_path_from_sys_path(self):
        """Remove Spyder path from sys.path"""
        for path in self.path + self.project_path:
            while path in sys.path:
                sys.path.remove(path)