##// END OF EJS Templates
util: move _hgexecutable a few lines, closer to where it is used
Mads Kiilerich -
r22632:db15bb2d default
parent child Browse files
Show More
@@ -450,8 +450,6 b' def pathto(root, n1, n2):'
450 450 b.reverse()
451 451 return os.sep.join((['..'] * len(a)) + b) or '.'
452 452
453 _hgexecutable = None
454
455 453 def mainfrozen():
456 454 """return True if we are a frozen executable.
457 455
@@ -462,6 +460,8 b' def mainfrozen():'
462 460 safehasattr(sys, "importers") or # old py2exe
463 461 imp.is_frozen("__main__")) # tools/freeze
464 462
463 _hgexecutable = None
464
465 465 def hgexecutable():
466 466 """return location of the 'hg' executable.
467 467
General Comments 0
You need to be logged in to leave comments. Login now