'Reopen the active project when Spyder was closed last time, if any'

def reopen_last_project(self):

    current_project_path = self.get_option('current_project_path', default=None)
    if (current_project_path and self.is_valid_project(current_project_path)):
        self.open_project(path=current_project_path, restart_consoles=False, save_previous_files=False)
        self.load_config()
