(self)
Return our cwd
Return our cwd
Return our cwd
def get_cwd(self):
        """Return our cwd"""
        vte_cwd = self.vte.get_current_directory_uri()
        if vte_cwd:
            # OSC7 pwd gives an answer
            return(GLib.filename_from_uri(vte_cwd)[0])
        else:
            # Fall back to old gtk2 method
            dbg('calling get_pid_cwd')
            return(get_pid_cwd(self.pid))
def get_cwd ( self ) : vte_cwd = self . vte . get_current_directory_uri ( ) if vte_cwd : # OSC7 pwd gives an answer return ( GLib . filename_from_uri ( vte_cwd ) [ 0 ] ) else : # Fall back to old gtk2 method dbg ( 'calling get_pid_cwd' ) return ( get_pid_cwd ( self . pid ) )