def _get_data_path():
if '<STR_LIT>' in os.environ:<EOL><INDENT>path = os.environ['<STR_LIT>']<EOL>if not os.path.isdir(path):<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>return path<EOL><DEDENT>path = os.sep.join([os.path.dirname(__file__), '<STR_LIT>'])<EOL>if os.path.isdir(path): return path<EOL>import matplotlib.afm<EOL>path = os.sep.join([os.path.dirname(matplotlib.afm.__file__), '<STR_LIT>'])<EOL>if os.path.isdir(path): return path<EOL>if getattr(sys,'<STR_LIT>',None):<EOL><INDENT>path = os.path.join(os.path.split(sys.path[<NUM_LIT:0>])[<NUM_LIT:0>], '<STR_LIT>')<EOL>if os.path.isdir(path): return path<EOL>else:<EOL><INDENT>path = os.path.join(os.path.split(os.path.split(sys.path[<NUM_LIT:0>])[<NUM_LIT:0>])[<NUM_LIT:0>],<EOL>'<STR_LIT>')<EOL><DEDENT>if os.path.isdir(path): return path<EOL>else:<EOL><INDENT>path = os.path.join(sys.path[<NUM_LIT:0>], '<STR_LIT>')<EOL>if os.path.isdir(path): return path<EOL><DEDENT><DEDENT>raise RuntimeError('<STR_LIT>')<EOL>
get the path to matplotlib data