File: framework.rst

package info (click to toggle)
thunderbird 1%3A52.9.1-1~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,709,148 kB
  • sloc: cpp: 5,081,792; ansic: 2,051,951; python: 458,733; java: 241,615; xml: 193,600; asm: 178,649; sh: 81,881; makefile: 24,702; perl: 16,874; objc: 4,389; yacc: 1,816; ada: 1,697; lex: 1,257; pascal: 1,251; cs: 879; exp: 499; php: 436; lisp: 258; awk: 152; sed: 51; ruby: 47; csh: 27
file content (34 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
:mod:`macholib.framework` --- Generic framework path manipulation
==========================================================================

.. module:: macholib.framework
   :synopsis: Generic framework path manipulation


This module defines a function :func:`framework_info` that can extract
useful information from the name of a dynamic library in a framework.

.. function:: framework_info(filename)

   A framework name can take one of the following four forms:

   * ``Location/Name.framework/Versions/SomeVersion/Name_Suffix``

   * ``Location/Name.framework/Versions/SomeVersion/Name``

   * ``Location/Name.framework/Name_Suffix``

   * ``Location/Name.framework/Name``

   Returns ``None`` if not found, or a mapping equivalent to::

      dict(
          location='Location',
          name='Name.framework/Versions/SomeVersion/Name_Suffix',
          shortname='Name',
          version='SomeVersion',
          suffix='Suffix',
      )

  .. note:: *SomeVersion* and *Suffix* are optional and may be None
     if not present.