mercurial/templater.py
changeset 45259 9a308336fe41
parent 45257 668af67bfd18
child 45261 28840ef52f71
equal deleted inserted replaced
45258:46c8db8d4e03 45259:9a308336fe41
  1070     '''return location of template file. returns None if not found.'''
  1070     '''return location of template file. returns None if not found.'''
  1071     dir = templatedir()
  1071     dir = templatedir()
  1072     if dir is None:
  1072     if dir is None:
  1073         return None
  1073         return None
  1074     f = os.path.join(templatedir(), name)
  1074     f = os.path.join(templatedir(), name)
  1075     if f and os.path.exists(f):
  1075     if f and os.path.isfile(f):
  1076         return f
  1076         return f
  1077     return None
  1077     return None
  1078 
  1078 
  1079 
  1079 
  1080 def stylemap(styles, path=None):
  1080 def stylemap(styles, path=None):