Created
December 2, 2023 20:53
-
-
Save connordavenport/ec6e47149a2c2be3230a13d98d45fe33 to your computer and use it in GitHub Desktop.
a rf script to print extensions in order of building
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mojo.extensions import ExtensionBundle as bb | |
import datetime | |
import collections | |
from pprint import pprint | |
ext = bb.allExtensions() | |
i = {} | |
for e in ext: | |
time = bb(e).infoDictionary.get("timeStamp") | |
formatted_date = datetime.datetime.utcfromtimestamp(time).strftime('%Y-%m-%d %H:%M:%S') | |
i[time] = (e,formatted_date) | |
s = collections.OrderedDict(sorted(i.items(),reverse=True)) | |
ordered = [name for _,(name,_) in s.items()] | |
pprint(ordered) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment