#NEWLINE# def handle_default_options( options ) : #NEWLINE# #INDENT# '\n    Pass in a Values instance from OptionParser.  Handle settings and pythonpath\n    options - Values from OptionParser\n    ' #NEWLINE# if options . settings : #NEWLINE# #INDENT# os . environ [ 'PERCEPT_SETTINGS_MODULE' ] = options . settings #NEWLINE# #UNINDENT# if options . pythonpath : #NEWLINE# #INDENT# options . pythonpath = os . path . abspath ( os . path . expanduser ( options . pythonpath ) ) #NEWLINE# up_one_path = os . path . abspath ( os . path . join ( options . pythonpath , '..' ) ) #NEWLINE# sys . path . append ( up_one_path . pythonpath ) #NEWLINE# sys . path . append ( up_one_path ) #NEWLINE# #UNINDENT# return options