<s> '''<STR_LIT>''' <EOL> import os <EOL> def parse_config_value ( x ) : <EOL> if x . strip ( ) . lower ( ) in ( '<STR_LIT:true>' , '<STR_LIT>' , '<STR_LIT:yes>' ) : <EOL> return True <EOL> elif x . strip ( ) . lower ( ) in ( '<STR_LIT:false>' , '<STR_LIT>' , '<STR_LIT>' ) : <EOL> return False <EOL> else : <EOL> return x <EOL> def check_directory ( path ) : <EOL> if not os . path . exists ( path ) : <EOL> os . makedirs ( path ) <EOL> def path ( p ) : <EOL> p = os . path . expanduser ( p ) <EOL> p = os . path . abspath ( p ) <EOL> return p </s>
