mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
[ui] Project, import and import recursive in meshroom command now absolute paths
Prevent from having some files gone
This commit is contained in:
parent
958f2edc99
commit
104e1ae31d
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue