#NEWLINE# def _fix_path( self , path ) : #NEWLINE# #INDENT# ' Translates special prefixes. ' #NEWLINE# if path . startswith ( HOME_DIRECTORY ) : #NEWLINE# #INDENT# path = os . path . join ( self . home_dir , path [ len ( HOME_DIRECTORY ) : ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if path . startswith ( WORKING_DIRECTORY ) : #NEWLINE# #INDENT# path = os . path . join ( self . work_dir , path [ len ( WORKING_DIRECTORY ) : ] ) #NEWLINE# #UNINDENT# #UNINDENT# return path