[Python-Dev] Timing breakdown of Py_InitializeEx_Private()
Antoine Pitrou
solipsis at pitrou.net
Thu Apr 17 00:14:17 CEST 2014
More information about the Python-Dev mailing list
Thu Apr 17 00:14:17 CEST 2014
- Previous message: [Python-Dev] Timing breakdown of Py_InitializeEx_Private()
- Next message: [Python-Dev] Timing breakdown of Py_InitializeEx_Private()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] Timing breakdown of Py_InitializeEx_Private()
- Next message: [Python-Dev] Timing breakdown of Py_InitializeEx_Private()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list