<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div>
<div style="font-family:Calibri,sans-serif; font-size:11pt">You're not alone, that's exactly how I do it too.<br>
<br>
I'm writing up a PEP for the activate-py command I suggested earlier that will temporarily set your PATH. If that goes well then we'll be able to ship that with the py.exe launcher (I'm particularly excited for batch files to be able to use it).<br>
<br>
Cheers,<br>
Steve<br>
<br>
Top-posted from my Windows Phone</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">From:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:theller@ctypes.org">Thomas Heller</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Sent:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">ý2/ý12/ý2015 0:03</span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">To:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:python-dev@python.org">python-dev@python.org</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Subject:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">Re: [Python-Dev] PEP 370 - per-user scripts directory on Windows</span><br>
<br>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Am 10.02.2015 um 18:45 schrieb Steve Dower:<br>
> As we've seen from earlier discussions, the main beneficiaries of<br>
> having Python on PATH are those using the command-line. Most scripts<br>
> are going to make assumptions or work unnecessarily hard to find the<br>
> actual location of the Python version they need.<br>
<br>
Maybe I'm more or less alone with the way I work, but I don't like<br>
python.exe on my PATH (and py.exe alloes me to do this).<br>
I start python scripts from the command line either with 'script.py'<br>
or 'py -3.4 script.py' or 'py -2.7 script.py'.<br>
<br>
I even like running scripts in this way:<br>
'py -2.7 -m pip install whatever'. However, this only works when the <br>
script also can be started as package. Some packages allow this,<br>
some don't.<br>
<br>
Could not py.exe be extended so that it allows starting scripts in a<br>
somewhat similar way? 'py-script -2.7 myscript foo bar baz' ???<br>
Which would execute the script myscript.exe, myscript.bat, myscript.py,<br>
myscript.cmd or whatever is in the Scripts directory on the Python 2.7<br>
installation, without changing PATH presistently?<br>
<br>
Thanks,<br>
Thomas<br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
Python-Dev@python.org<br>
<a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com">
https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com</a><br>
</div>
</span></font>
</body>
</html>