(doc, searchPath, libraryPath)
| 34 | doc.importLibrary(libDoc) |
| 35 | |
| 36 | def _loadLibraries(doc, searchPath, libraryPath): |
| 37 | librarySubPaths = _getSubDirectories(libraryPath) |
| 38 | librarySubPaths.append(libraryPath) |
| 39 | for path in librarySubPaths: |
| 40 | filenames = _getMTLXFilesInDirectory(os.path.join(libraryPath, path)) |
| 41 | for filename in filenames: |
| 42 | filePath = os.path.join(libraryPath, os.path.join(path, filename)) |
| 43 | _loadLibrary(filePath, doc) |
| 44 | |
| 45 | def _writeHeader(file, version): |
| 46 | file.write('mdl ' + version + ';\n') |
no test coverage detected