Licenses Class inaccessible members

I’m trying to detect whether the .toe file I am currently in is running a Commercial version of TouchDesigner or not. I can get the list of licenses using the licenses class, and I can see the type of licenses. However, I have a few issues:

  1. Amongst the list of licenses (I, for example, have 3 on my machine) how can I detect which one is the one tied to the specific version of TouchDesigner I’m currently running? I can correctly execute the machinecode method, but that should be relative to the machine, not the TD version.
  2. Even though I can correctly run “type” and a few other methods, I cannot run “isPro” and “isNonCommercial” even though it is suggested to do so on the wiki page. I get the following error:
AttributeError: 'td.License' object has no attribute 'isPro'
Results of run operation resulted in exception.

Those members are available on the licenses object, not the individual license object. It will tell you if your are keyed as a pro, but not tell you about the specific license that is Pro. To see what you can get from an individual license object, look at