# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1678122146 -3600 # Mon Mar 06 18:02:26 2023 +0100 # Branch stable # Node ID a070a7c3dbf8d0c6b5085785d6ffa0206f1622ce # Parent 26c57e7a0890b96e2c473b394de380d6753c9230 # EXP-Topic patches hg diff --git a/hg b/hg --- a/hg +++ b/hg @@ -10,34 +10,6 @@ import os import sys -libdir = '@LIBDIR@' - -if libdir != '@' 'LIBDIR' '@': - if not os.path.isabs(libdir): - libdir = os.path.join( - os.path.dirname(os.path.realpath(__file__)), libdir - ) - libdir = os.path.abspath(libdir) - sys.path.insert(0, libdir) - -# Make `pip install --user ...` packages available to the official Windows -# build. Most py2 packaging installs directly into the system python -# environment, so no changes are necessary for other platforms. The Windows -# py2 package uses py2exe, which lacks a `site` module. Hardcode it according -# to the documentation. -if getattr(sys, 'frozen', None) == 'console_exe': - vi = sys.version_info - appdata = os.environ.get('APPDATA') - if appdata: - sys.path.append( - os.path.join( - appdata, - 'Python', - 'Python%d%d' % (vi[0], vi[1]), - 'site-packages', - ) - ) - try: from hgdemandimport import tracing except ImportError: