Scripts: Re-Sync Blend Files #240

Merged
Sebastian Parborg merged 8 commits from TinyNick/blender-studio-pipeline:feature/resync_all_files into main 2024-02-22 16:21:03 +01:00
Showing only changes of commit 28062d8dba - Show all commits

View File

@ -101,10 +101,9 @@ def main():
for item in files_to_craw: for item in files_to_craw:
cmd_list.insert(3, item) cmd_list.insert(3, item)
with open('/tmp/resync_log.txt', 'w') as log: process = subprocess.Popen(cmd_list, shell=False)
process = subprocess.Popen(cmd_list, stdout=log, stderr=log, shell=False) if process.wait() != 0:
if process.wait() != 0: cancel_program(f"Resync Failed!")
cancel_program(f"Resync Failed!")
print("Resync Completed Successfully") print("Resync Completed Successfully")
return 0 return 0