[ui] Project, import and import recursive in meshroom command now absolute paths

Prevent from having some files gone
This commit is contained in:
Aurore LAFAURIE 2024-05-24 11:27:16 +02:00
parent 958f2edc99
commit 104e1ae31d
2 changed files with 2 additions and 0 deletions

View file

@ -130,6 +130,7 @@ def findFilesByTypeInFolder(folder, recursive=False):
output = FilesByType()
for currentFolder in inputFolders:
currentFolder = os.path.abspath(currentFolder)
if os.path.isfile(currentFolder):
output.addFile(currentFolder)
continue

View file

@ -170,6 +170,7 @@ class MeshroomApp(QApplication):
"Invalid value: '{}'".format(args.project))
if args.project:
args.project = os.path.abspath(args.project)
r.load(args.project)
self.addRecentProjectFile(args.project)
else: