Imports

✎ Quills

Last updated: 

Importing Quills can be tricky because it is a compiled module, it is not necessarily installed in a location that Mac OS X searches by default, and it supports a variety of architectures and Python versions.

See the architecture page for full details on library design decisions.

Creating a Script That Imports Quills

There are actually a few ways to run Quills-based scripts:

Any of the short-cuts above will work, but more details on the specific runtime requirements are provided here, for completeness.

Quills is partly compiled (see Architecture), so you must make sure both the compiled and Python parts are found.

There are two important locations:

The library path can be found in a couple of ways (run man dyld for more information on linker search paths):

The module path can also be found in a few ways:

Using install privilege to resolve the two paths above is certainly simpler for the script writer, but it introduces a dependency that users of your program must resolve: namely, they must also ensure Quills is installed in all the right places on their computers.  To remain portable, MacTelnet.app does not use this approach.