Logo Search packages:      
Sourcecode: matplotlib version File versions

def matplotlib::config::cutils::is_writable_dir (   p  ) 

p is a string pointing to a putative writable dir -- return True p
is such a string, else False

Definition at line 21 of file cutils.py.

00021                       :
    """
    p is a string pointing to a putative writable dir -- return True p
    is such a string, else False
    """
    try: p + ''  # test is string like
    except TypeError: return False
    try:
        t = tempfile.TemporaryFile(dir=p)
        t.write('1')
        t.close()
    except OSError: return False
    else: return True

def _get_home():


Generated by  Doxygen 1.6.0   Back to index