Created
December 22, 2016 20:39
-
-
Save EricTRocks/218ef726613d97bc8555c541f27deb16 to your computer and use it in GitHub Desktop.
Loads a Fabric Engine extension from a file path after the client has been created and after the FABRIC_EXTS_PATH has been set. This also shows how to use the new getExtensionsDesc() method.
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
import FabricEngine.Core | |
import json | |
client = FabricEngine.Core.createClient({'guarded': True}) | |
client.registerExtensions("C:\\temp\\Exts") | |
client.loadExtension('EricTools') | |
extData = json.loads(client.getExtensionsDesc()) | |
for k, v in extData.iteritems(): | |
if k == 'EricTools': | |
print k | |
print "\t" + json.dumps(v, indent=4, sort_keys=True) | |
client.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment