Merge pull request #2675 from alicevision/fix/cliRecentProjectFiles

Fix Meshroom App CLI `latest` option
This commit is contained in:
Fabien Castan 2025-02-17 23:35:20 +01:00 committed by GitHub
commit 550f685c07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -303,7 +303,7 @@ class MeshroomApp(QApplication):
self._activeProject.load(args.project)
self.addRecentProjectFile(args.project)
elif args.latest or args.latest2 or args.latest3:
projects = self._recentProjectFiles()
projects = self._recentProjectFiles
if projects:
index = [args.latest, args.latest2, args.latest3].index(True)
project = os.path.abspath(projects[index]["path"])