self.edited_infos = []
for info in self.current_infos:
if self.internalDatasetNameComboBox.isEnabled():
pathComponents = PathComponents(info.filePath)pathComponents.internalPath = self.internalDatasetNameComboBox.currentText()
filePath = pathComponents.totalPath()
else:
filePath = info.filePath
if newStorageLocation == StorageLocation.ProjectFile:
location = DatasetInfo.Location.ProjectInternal
elif newStorageLocation == StorageLocation.Default:
location = info.location
else:
location = DatasetInfo.Location.FileSystem
if newStorageLocation == StorageLocation.RelativeLink:
filePath = Path(filePath).absolute().relative_to(self.projectFileDir).as_posix()
else:
filePath = Path(filePath).absolute().as_posix()
After Change
for info in self.current_infos:
location = info.location if new_location is None else new_location
new_full_paths = [Path(ep) / internal_path for ep in info.external_paths]
filepath = os.path.pathsep.join(str(path) for path in new_full_paths)
edited_info = DatasetInfo(
filepath=filepath,