#NEWLINE# def __init__( self , pkg_name , prefix , source_root , pkg_root , admin = True , description = None , version = None ) : #NEWLINE# #INDENT# if admin : #NEWLINE# #INDENT# self . auth = six . u ( 'AdminAuthorization' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . auth = six . u ( 'RootAuthorization' ) #NEWLINE# #UNINDENT# self . prefix = prefix #NEWLINE# self . source_root = source_root #NEWLINE# self . pkg_root = pkg_root #NEWLINE# self . name = pkg_name #NEWLINE# self . version_info = ( 0 , 0 , 5 , None ) #NEWLINE# if ( version is None ) : #NEWLINE# #INDENT# self . version = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . version = version #NEWLINE# #UNINDENT# if description : #NEWLINE# #INDENT# self . description = description #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . description = '' #NEWLINE# #UNINDENT# self . contents = os . path . join ( self . pkg_root , 'Contents' ) #NEWLINE# self . resources = os . path . join ( self . contents , 'Resources' ) #NEWLINE# self . en_lproj = os . path . join ( self . resources , 'en.lproj' ) #NEWLINE# self . bom = os . path . join ( self . contents , 'Archive.bom' ) #NEWLINE# self . archive = os . path . join ( self . contents , 'Archive.pax.gz' ) #NEWLINE# self . info_plist = os . path . join ( self . contents , 'Info.plist' ) #NEWLINE# self . pkg_info = os . path . join ( self . contents , 'PkgInfo' ) #NEWLINE# self . description_plist = os . path . join ( prefix . en_lproj , 'Description.plist' )