util: move _hgexecutable a few lines, closer to where it is used
authorMads Kiilerich <madski@unity3d.com>
Sun, 28 Sep 2014 16:57:06 +0200
changeset 22632 db15bb2d6323
parent 22631 d246eb9cabbc
child 22633 92b54547ac5d
util: move _hgexecutable a few lines, closer to where it is used
mercurial/util.py
--- a/mercurial/util.py	Sun Sep 28 13:27:40 2014 +0200
+++ b/mercurial/util.py	Sun Sep 28 16:57:06 2014 +0200
@@ -450,8 +450,6 @@
     b.reverse()
     return os.sep.join((['..'] * len(a)) + b) or '.'
 
-_hgexecutable = None
-
 def mainfrozen():
     """return True if we are a frozen executable.
 
@@ -462,6 +460,8 @@
             safehasattr(sys, "importers") or # old py2exe
             imp.is_frozen("__main__")) # tools/freeze
 
+_hgexecutable = None
+
 def hgexecutable():
     """return location of the 'hg' executable.