mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-02 10:52:03 +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()
|
output = FilesByType()
|
||||||
for currentFolder in inputFolders:
|
for currentFolder in inputFolders:
|
||||||
|
currentFolder = os.path.abspath(currentFolder)
|
||||||
if os.path.isfile(currentFolder):
|
if os.path.isfile(currentFolder):
|
||||||
output.addFile(currentFolder)
|
output.addFile(currentFolder)
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -170,6 +170,7 @@ class MeshroomApp(QApplication):
|
||||||
"Invalid value: '{}'".format(args.project))
|
"Invalid value: '{}'".format(args.project))
|
||||||
|
|
||||||
if args.project:
|
if args.project:
|
||||||
|
args.project = os.path.abspath(args.project)
|
||||||
r.load(args.project)
|
r.load(args.project)
|
||||||
self.addRecentProjectFile(args.project)
|
self.addRecentProjectFile(args.project)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue