Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created April 28, 2020 19:19
Show Gist options
  • Save aravindpai/c6ff11df4e20ce51d1080078cd966002 to your computer and use it in GitHub Desktop.
Save aravindpai/c6ff11df4e20ce51d1080078cd966002 to your computer and use it in GitHub Desktop.
import os
import re
names=os.listdir('frames/')
names.sort(key=lambda f: int(re.sub('\D', '', f)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment