--- a/mercurial/i18n.py Tue Dec 20 00:02:24 2016 +0530
+++ b/mercurial/i18n.py Tue Dec 20 00:20:07 2016 +0530
@@ -19,7 +19,7 @@
# modelled after templater.templatepath:
if getattr(sys, 'frozen', None) is not None:
- module = sys.executable
+ module = pycompat.sysexecutable
else:
module = __file__