proper scene folder discovery
This commit is contained in:
parent
c87c517217
commit
4046e757ef
7 changed files with 94 additions and 31 deletions
|
|
@ -24,7 +24,9 @@ def extract_loop_data_from_files(files_in, fout):
|
|||
if res is not None:
|
||||
collect[os.path.splitext(os.path.basename(x))[0]] = res
|
||||
with open(fout, "w") as out:
|
||||
json.dump(collect, out, ensure_ascii=False, indent="\t", sort_keys=True)
|
||||
json.dump(
|
||||
collect, out, ensure_ascii=False, indent="\t", sort_keys=True
|
||||
)
|
||||
|
||||
|
||||
def extract_loop_data_from_file(file_in, fout=None):
|
||||
|
|
@ -46,5 +48,7 @@ def extract_loop_data_from_file(file_in, fout=None):
|
|||
|
||||
if fout is not None and res is not None:
|
||||
with open(fout, "w") as out:
|
||||
json.dump(res, out, ensure_ascii=False, indent="\t", sort_keys=True)
|
||||
json.dump(
|
||||
res, out, ensure_ascii=False, indent="\t", sort_keys=True
|
||||
)
|
||||
return res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue