On Wed, 16 Apr 2014 22:33:49 +0200 Christian Tismer <tismer at stackless.com> wrote: > On 16/04/14 16:35, Antoine Pitrou wrote: > > On Wed, 16 Apr 2014 09:39:34 +0200 > > Christian Tismer <tismer at 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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4