Functions¶
| module_build_path(directory, module_name) | |
| module_error() | |
| module_supported() | 
Details¶
- 
GModule.module_build_path(directory, module_name)[source]¶
- Parameters: - Returns: - the complete path of the module, including the standard library prefix and suffix. This should be freed when no longer needed - Return type: - A portable way to build the filename of a module. The platform-specific prefix and suffix are added to the filename, if needed, and the result is added to the directory, using the correct separator character. - The directory should specify the directory where the module can be found. It can be - Noneor an empty string to indicate that the module is in a standard platform-specific directory, though this is not recommended since the wrong module may be found.- For example, calling - GModule.Module.build_path() on a Linux system with a directory of- /liband a module_name of “mylibrary” will return- /lib/libmylibrary.so. On a Windows system, using- \Windowsas the directory it will return- \Windows\mylibrary.dll.