'Spyder path manager'

@Slot()
def path_manager_callback(self):

    from spyder.widgets.pathmanager import PathManager
    self.remove_path_from_sys_path()
    project_path = self.projects.get_pythonpath()
    dialog = PathManager(self, self.path, project_path, sync=True)
    dialog.redirect_stdio.connect(self.redirect_internalshell_stdio)
    dialog.exec_()
    self.add_path_to_sys_path()
    encoding.writelines(self.path, self.SPYDER_PATH)
    self.sig_pythonpath_changed.emit()
