equal
deleted
inserted
replaced
2638 self._bindir = os.path.join(self._installdir, b"bin") |
2638 self._bindir = os.path.join(self._installdir, b"bin") |
2639 self._hgcommand = b'hg' |
2639 self._hgcommand = b'hg' |
2640 self._tmpbindir = self._bindir |
2640 self._tmpbindir = self._bindir |
2641 self._pythondir = os.path.join(self._installdir, b"lib", b"python") |
2641 self._pythondir = os.path.join(self._installdir, b"lib", b"python") |
2642 |
2642 |
|
2643 if os.name == 'nt' and not self._hgcommand.endswith(b'.exe'): |
|
2644 self._hgcommand += b'.exe' |
|
2645 |
2643 # set CHGHG, then replace "hg" command by "chg" |
2646 # set CHGHG, then replace "hg" command by "chg" |
2644 chgbindir = self._bindir |
2647 chgbindir = self._bindir |
2645 if self.options.chg or self.options.with_chg: |
2648 if self.options.chg or self.options.with_chg: |
2646 osenvironb[b'CHGHG'] = os.path.join(self._bindir, self._hgcommand) |
2649 osenvironb[b'CHGHG'] = os.path.join(self._bindir, self._hgcommand) |
2647 else: |
2650 else: |