#NEWLINE# def parse_args( self , args = None , namespace = None ) : #NEWLINE# #INDENT# super ( Start , self ) . parse_args ( args , self ) #NEWLINE# if os . path . isdir ( self . path ) : #NEWLINE# #INDENT# self . path = os . path . abspath ( self . path ) #NEWLINE# if ( not self . media ) : #NEWLINE# #INDENT# self . media = os . path . join ( self . path , 'img' ) #NEWLINE# #UNINDENT# if os . path . isdir ( self . media ) : #NEWLINE# #INDENT# if ( not self . config ) : #NEWLINE# #INDENT# self . config = os . path . join ( self . path , 'config.py' ) #NEWLINE# #UNINDENT# if ( not os . path . isfile ( self . config ) ) : #NEWLINE# #INDENT# self . config = None #NEWLINE# print ( ( 'Configuration file "config.py"' + ' not found on current directory!' ) ) #NEWLINE# print ( 'Loading slides without custom configurations...' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise NotADirectoryError ( 'your media path {0} is not a valid directory' . format ( self . media ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise NotADirectoryError ( 'your presentation path {0} is not a valid directory' . format ( self . path ) )