def get_mac_dot_app_dir ( directory ) : return os . path . dirname ( os . path . dirname ( os . path . dirname ( directory ) ) )
python folder location mac
Returns parent directory of mac . app
def get_mac_dot_app_dir(directory):
    """Returns parent directory of mac .app

    Args:

       directory (str): Current directory

    Returns:

       (str): Parent directory of mac .app
    """
    return os.path.dirname(os.path.dirname(os.path.dirname(directory)))