#NEWLINE# def __init__( self , name , rootdir ) : #NEWLINE# #INDENT# self . name = name #NEWLINE# self . root = rootdir #NEWLINE# self . plugins = [ ] #NEWLINE# self . names = [ ] #NEWLINE# self . mandatory = [ ] #NEWLINE# self . _scan ( ) #NEWLINE# site_path = os . path . join ( rootdir , '_site' ) #NEWLINE# if os . path . isdir ( site_path ) : #NEWLINE# #INDENT# self . site = site_path #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . site = None #NEWLINE# #UNINDENT# if ( ( not self . plugins ) and ( self . site is None ) ) : #NEWLINE# #INDENT# if os . path . isfile ( os . path . join ( rootdir , 'index.html' ) ) : #NEWLINE# #INDENT# self . site = rootdir