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