from mozpack.manifests import InstallManifest manifest = InstallManifest() manifest.add_pattern_link('/path/to/package/**', '/install/path') manifest.write('manifest.ini')
from mozpack.manifests import InstallManifest manifest = InstallManifest() manifest.add_pattern_link('/path/to/package/*.js', '/install/path/js') manifest.write('manifest.ini')This code creates an InstallManifest object, adds a pattern link to all .js files in the package folder, and writes the resulting manifest to a file. Based on the import statement and class name used in the examples, the package library being utilized is likely part of Mozilla's toolkit for Python developers.