#NEWLINE# def setup( ) : #NEWLINE# #INDENT# top_dir = dirname ( dirname ( abspath ( __file__ ) ) ) #NEWLINE# lib_dir = join ( top_dir , 'lib' ) #NEWLINE# sys . path . insert ( 0 , lib_dir ) #NEWLINE# try : #NEWLINE# #INDENT# import pygments #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# pygments_dir = join ( top_dir , 'deps' , 'pygments' ) #NEWLINE# if ( sys . version_info [ 0 ] <= 2 ) : #NEWLINE# #INDENT# sys . path . insert ( 0 , pygments_dir ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sys . path . insert ( 0 , ( pygments_dir + '3' ) )