Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shots = ['RBGB_999_010_400', 'RBGB_999_010_410', 'RBGB_999_010_440B', 'RBGB_999_010_450', 'RBGB_999_010_470', 'RBGB_999_010_480', 'RBGB_999_010_490', 'RBGB_999_010_500', 'RBGB_999_010_560', 'RBGB_999_010_570', 'RBGB_999_010_590', 'RBGB_999_010_600', 'RBGB_999_010_610', 'RBGB_999_010_660', 'RBGB_999_010_670', 'RBGB_999_010_680', 'RBGB_999_010_700', 'RBGB_999_010_710', 'RBGB_999_010_730', 'RBGB_999_010_770', 'RBGB_999_010_820']
- import sf_pipe_test as sf
- sf.openLatestAnimPub(shot_code=shots[0])
- import shutil
- import os
- for a in shots:
- cog_dit = 'Y:/RBGB/episodes/999/shots/{}/pipeline/COG_locators'.format(a)
- max_cog_size = max([os.stat(cog_dit+'/'+i).st_size for i in os.listdir(cog_dit)])
- for cog_f in [cog_dit+'/'+i for i in os.listdir(cog_dit) if os.stat(cog_dit+'/'+i).st_size <max_cog_size]:
- os.remove(cog_f)
- os.stat(cog_dit+'/'+'RBGB_999_010_900_v0012.abc').st_size <max_cog_size
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement