Skip to content

Instantly share code, notes, and snippets.

@EricTRocks
Created December 22, 2016 20:39
Show Gist options
  • Save EricTRocks/218ef726613d97bc8555c541f27deb16 to your computer and use it in GitHub Desktop.
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.
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