def METHOD_NAME(self):
    directory = QtCore.QStandardPaths.writableLocation(QtCore.QStandardPaths.DocumentsLocation)
    if len(directory) == 0:
        directory = LocalServer.instance().localServerSettings()["projects_path"]
    path, _ = QtWidgets.QFileDialog.getSaveFileName(self, "Export portable project", directory,
                                                    "GNS3 Portable Project (*.gns3project *.gns3p)",
                                                    "GNS3 Portable Project (*.gns3project *.gns3p)")
    if path is None or len(path) == 0:
        return
    self.uiPathLineEdit.setText(path)