On Wed, 16 Apr 2014 22:33:49 +0200 Christian Tismer <tis...@stackless.com> wrote: > On 16/04/14 16:35, Antoine Pitrou wrote: > > On Wed, 16 Apr 2014 09:39:34 +0200 > > Christian Tismer <tis...@stackless.com> wrote: > >> > >> I think in cases like hg command line scripts there is no need > >> to import site just for hg scripts. > > > > If you don't import site you won't be able to import Mercurial in most > > cases. > > > Oh is that so? > I thought about hg as a set of command-line scripts with a defined > interface that should IMO not be dependent from any site-specific > settings.
Well perhaps you should take a look. Mercurial is actually a package (in the Python sense) named "mercurial" with a bunch of modules inside it. When it gets installed, it's typically installed into site-packages, which means site.py is necessary for the install location to crop up into sys.path. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com