grthtrhthjhtyjytjytkergtrhtrjytjerhrfh3 \$ã@s>dZddlZdgZejdƒZdd„Zdd„Zedkr:eƒdS) z! Generic dylib path manipulation éNÚ dylib_infoz‹(?x) (?P^.*)(?:^|/) (?P (?P\w+?) (?:\.(?P[^._]+))? (?:_(?P[^._]+))? \.dylib$ ) cCstj|ƒ}|sdS|jƒS)a1 A dylib name can take one of the following four forms: Location/Name.SomeVersion_Suffix.dylib Location/Name.SomeVersion.dylib Location/Name_Suffix.dylib Location/Name.dylib returns None if not found or a mapping equivalent to: dict( location='Location', name='Name.SomeVersion_Suffix.dylib', shortname='Name', version='SomeVersion', suffix='Suffix', ) Note that SomeVersion and Suffix are optional and may be None if not present. N)ÚDYLIB_REÚmatchÚ groupdict)ÚfilenameZis_dylib©rú-/usr/lib64/python3.6/ctypes/macholib/dylib.pyrs cCsddd„}dS)NcSst|||||d�S)N)ÚlocationÚnameÚ shortnameÚversionÚsuffix)Údict)r r r r r rrrÚd.s ztest_dylib_info..d)NNNNNr)rrrrÚtest_dylib_info-s rÚ__main__)Ú__doc__ÚreÚ__all__ÚcompilerrrÚ__name__rrrrÚs