def touch_empty_backreferences(app, what, name, obj, options, lines):
 examples_path = os.path.join(app.srcdir, app.config.sphinx_gallery_conf['mod_example_dir'], ('%s.examples' % name))
 if (not os.path.exists(examples_path)):
  open(examples_path, 'w').close()

def touch_empty_backreferences ( app , what , name , obj , options , lines ) : examples_path = os . path . join ( app . srcdir , app . config . sphinx_gallery_conf [ 'mod_example_dir' ] , ( '%s.examples' % name ) ) if ( not os . path . exists ( examples_path ) ) : open ( examples_path , 'w' ) . close ( )
generate empty back-reference example files this avoids inclusion errors/warnings if there are no gallery examples for a class / module that is being parsed by autodoc .