Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templater.py @ 14941:4a28cb4df1f8
windows: check util.mainfrozen() instead of ad-hoc checks everywhere
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 25 Jul 2011 16:14:02 -0500 |
parents | ab545a15d807 |
children | d3bb825ddae3 |
line wrap: on
line diff
--- a/mercurial/templater.py Mon Jul 25 22:19:28 2011 +0300 +++ b/mercurial/templater.py Mon Jul 25 16:14:02 2011 -0500 @@ -341,7 +341,7 @@ normpaths = [] # executable version (py2exe) doesn't support __file__ - if hasattr(sys, 'frozen'): + if util.mainfrozen(): module = sys.executable else: module = __file__