#NEWLINE# @ wrap_exceptions #NEWLINE# def cwd( self ) : #NEWLINE# #INDENT# procfs_path = self . _procfs_path #NEWLINE# try : #NEWLINE# #INDENT# return os . readlink ( ( '%s/%s/path/cwd' % ( procfs_path , self . pid ) ) ) #NEWLINE# #UNINDENT# except OSError as err : #NEWLINE# #INDENT# if ( err . errno == errno . ENOENT ) : #NEWLINE# #INDENT# os . stat ( ( '%s/%s' % ( procfs_path , self . pid ) ) ) #NEWLINE# return None #NEWLINE# #UNINDENT# raise