def get_demography_template(stream, model, tp_dir=None):
 if (tp_dir is None):
  filename = sep.join([builtin_tpl_dir, (model + '.par')])
 else:
  filename = sep.join([tp_dir, (model + '.par')])
 with open(filename, 'r') as f:
  l = f.readline()
  while (l != ''):
   stream.write(l)
   l = f.readline()

def get_demography_template ( stream , model , tp_dir = None ) : if ( tp_dir is None ) : filename = sep . join ( [ builtin_tpl_dir , ( model + '.par' ) ] ) else : filename = sep . join ( [ tp_dir , ( model + '.par' ) ] ) with open ( filename , 'r' ) as f : l = f . readline ( ) while ( l != '' ) : stream . write ( l ) l = f . readline ( )
gets a demograpy template .