Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Wes Turner
Steven, I had intended to answer the question. If I did not answer this question, I must have misunderstood the question. > Never mind. site._script() as pointed out by Wes Turner is what I need: These commands could also be helpful for the inferred use case: $(which pip) --version

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Paul Moore
On 12 April 2017 at 14:35, Kamal Mustafa wrote: > Never mind. site._script() as pointed out by Wes Turner is what I need:- > > Python 3.4.2 (default, Oct 8 2014, 10:45:20) > [GCC 4.9.1] on linux > Type "help", "copyright", "credits" or "license" for more information.

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Kamal Mustafa
Never mind. site._script() as pointed out by Wes Turner is what I need:- Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import site >>> site._script() sys.path = [ '', '/usr/lib/python3.4',

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Mark Lawrence via Python-ideas
On 12/04/2017 04:04, Steven D'Aprano wrote: On Tue, Apr 11, 2017 at 09:28:22PM -0500, Wes Turner wrote: python -m site https://github.com/python/cpython/blob/master/Lib/site.py - _script() Wes, I have no idea what that code snippet is supposed to do, or even whether it is supposed to be

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Carl Smith
Sorry. Ignore my last message. I thought this conversation was on the IPython Dev list. -- Carl Smith carl.in...@gmail.com On 12 April 2017 at 10:31, Carl Smith wrote: > I actually did have `me` defined, but changed it to `my` recently. I use > it in my shell to store my

Re: [Python-ideas] "import me" to display some summary of the current python installation

2017-04-12 Thread Carl Smith
I actually did have `me` defined, but changed it to `my` recently. I use it in my shell to store my personal details, like my mobile number, API keys etc. It's handy being able to do `my.mobile` when I need that info quickly. Either way, the default banner should, and generally does, point new