Skip to content

Instantly share code, notes, and snippets.

@connordavenport
Created December 2, 2023 20:53
Show Gist options
  • Save connordavenport/ec6e47149a2c2be3230a13d98d45fe33 to your computer and use it in GitHub Desktop.
Save connordavenport/ec6e47149a2c2be3230a13d98d45fe33 to your computer and use it in GitHub Desktop.
a rf script to print extensions in order of building
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