Libraries and Frameworks

The documentation of the libraries and frameworks herein is largely concerned with how they imported and used in Python. That being said, much of the information recorded here could easily be transposed into other languages that are able to make direct use of shared C/C++/Objective-C objects.

To import a Savant provided Framework into a Python program intended for execution on a Mac, use the following code:

try:
	objc.loadBundle("avComponentXML", globals(), bundle_path=objc.pathForFramework(u'/Users/benp/Library/Frameworks/avComponentXML.framework'))
except ImportError:
	print "failed to import Framework"

For a Python script intended for use on a Smarthost, use:





Log In