<s> import sys <EOL> import os <EOL> import skimage <EOL> curpath = os . path . dirname ( __file__ ) <EOL> sys . path . append ( os . path . join ( curpath , '<STR_LIT:..>' , '<STR_LIT>' ) ) <EOL> extensions = [ '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> try : <EOL> from matplotlib . sphinxext import plot_directive <EOL> except ImportError : <EOL> use_matplotlib_plot_directive = False <EOL> else : <EOL> try : <EOL> use_matplotlib_plot_directive = ( plot_directive . __version__ >= <NUM_LIT:2> ) <EOL> except AttributeError : <EOL> use_matplotlib_plot_directive = False <EOL> if use_matplotlib_plot_directive : <EOL> extensions . append ( '<STR_LIT>' ) <EOL> else : <EOL> extensions . append ( '<STR_LIT>' ) <EOL> templates_path = [ '<STR_LIT>' ] <EOL> source_suffix = '<STR_LIT>' <EOL> master_doc = '<STR_LIT:index>' <EOL> project = '<STR_LIT>' <EOL> copyright = '<STR_LIT>' <EOL> with open ( '<STR_LIT>' ) as f : <EOL> setup_lines = f . readlines ( ) <EOL> version = '<STR_LIT>' <EOL> for l in setup_lines : <EOL> if l . startswith ( '<STR_LIT>' ) : <EOL> version = l . split ( "<STR_LIT:'>" ) [ <NUM_LIT:1> ] <EOL> break <EOL> release = version <EOL> exclude_trees = [ ] <EOL> pygments_style = '<STR_LIT>' <EOL> html_theme = '<STR_LIT>' <EOL> html_theme_path = [ '<STR_LIT>' ] <EOL> html_title = '<STR_LIT>' % version <EOL> html_favicon = '<STR_LIT>' <EOL> html_static_path = [ '<STR_LIT>' ] <EOL> html_sidebars = { <EOL> '<STR_LIT>' : [ '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] , <EOL> } <EOL> htmlhelp_basename = '<STR_LIT>' <EOL> latex_font_size = '<STR_LIT>' <EOL> latex_documents = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' , u'<STR_LIT>' , <EOL> u'<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> latex_preamble = r'''<STR_LIT>''' <EOL> latex_use_modindex = False <EOL> numpydoc_show_class_members = False <EOL> numpydoc_class_members_toctree = False <EOL> plot_basedir = os . path . join ( curpath , "<STR_LIT>" ) <EOL> plot_pre_code = """<STR_LIT>""" <EOL> plot_include_source = True <EOL> plot_formats = [ ( '<STR_LIT>' , <NUM_LIT:100> ) , ( '<STR_LIT>' , <NUM_LIT:100> ) ] <EOL> plot2rst_index_name = '<STR_LIT>' <EOL> plot2rst_rcparams = { '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:none>' } <EOL> _python_version_str = '<STR_LIT>' . format ( sys . version_info ) <EOL> _python_doc_base = '<STR_LIT>' + _python_version_str <EOL> intersphinx_mapping = { <EOL> '<STR_LIT>' : ( _python_doc_base , None ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , <EOL> ( None , '<STR_LIT>' ) ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , <EOL> ( None , '<STR_LIT>' ) ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , <EOL> ( None , '<STR_LIT>' ) ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , <EOL> ( None , '<STR_LIT>' ) ) <EOL> } <EOL> import inspect <EOL> from os . path import relpath , dirname <EOL> def linkcode_resolve ( domain , info ) : <EOL> """<STR_LIT>""" <EOL> if domain != '<STR_LIT>' : <EOL> return None <EOL> modname = info [ '<STR_LIT>' ] <EOL> fullname = info [ '<STR_LIT>' ] <EOL> submod = sys . modules . get ( modname ) <EOL> if submod is None : <EOL> return None <EOL> obj = submod <EOL> for part in fullname . split ( '<STR_LIT:.>' ) : <EOL> try : <EOL> obj = getattr ( obj , part ) <EOL> except : <EOL> return None <EOL> try : <EOL> fn = inspect . getsourcefile ( obj ) <EOL> except : <EOL> fn = None <EOL> if not fn : <EOL> return None <EOL> try : <EOL> source , lineno = inspect . findsource ( obj ) <EOL> except : <EOL> lineno = None <EOL> if lineno : <EOL> linespec = "<STR_LIT>" % ( lineno + <NUM_LIT:1> ) <EOL> else : <EOL> linespec = "<STR_LIT>" <EOL> fn = relpath ( fn , start = dirname ( skimage . __file__ ) ) <EOL> if '<STR_LIT>' in skimage . __version__ : <EOL> return ( "<STR_LIT>" <EOL> "<STR_LIT>" % ( fn , linespec ) ) <EOL> else : <EOL> return ( "<STR_LIT>" <EOL> "<STR_LIT>" % ( skimage . __version__ , fn , linespec ) ) </s>
