Scripts: Re-Sync Blend Files #240
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user