environment/lib/python2.7/site-packages/IPython/core/prompts.py
def cwd_filt(depth):
    """Return the last depth elements of the current working directory.

    $HOME is always replaced with '~'.
    If depth==0, the full path is returned."""

    cwd = os.getcwdu().replace(HOME,"~")
    out = os.sep.join(cwd.split(os.sep)[-depth:])
    return out or os.sep
def cwd_filt(depth):
    """Return the last depth elements of the current working directory.

    $HOME is always replaced with '~'.
    If depth==0, the full path is returned."""

    cwd = os.getcwdu().replace(HOME,"~")
    out = os.sep.join(cwd.split(os.sep)[-depth:])
    return out or os.sep
def cwd_filt ( depth ) : cwd = os . getcwdu ( ) . replace ( HOME , "~" ) out = os . sep . join ( cwd . split ( os . sep ) [ - depth : ] ) return out or os . sep
Return the last depth elements of the current working directory.

    $HOME is always replaced with '~'.
    If depth==0, the full path is returned.
Return the last depth elements of the current working directory .