Glue is written entirely in Python, and we abide by the following guidelines:
We use absolute imports for most of the code in Glue, with the exception of tests, which are allowed to import the classes/functions they are testing using relative imports. This means that if we need to move files and their associated tests around, the tests will still work without having to change the imports.
All Qt-specific code should live in
qt/sub-directories (see Qt-specific code for more details).