A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-March/117842.html below:

[Python-Dev] Python install layout and the PATH on win32

[Python-Dev] Python install layout and the PATH on win32 [Python-Dev] Python install layout and the PATH on win32VanL van.lindberg at gmail.com
Tue Mar 20 17:24:33 CET 2012
On 3/20/2012 11:19 AM, "Martin v. Löwis" wrote:
> No - there is an version #3a: 3.a) Get a shell and run the script CD 
> into the directory, then directly run foo.py, without prefixing it 
> with python.exe. This doesn't require any changes to the path, and is 
> shorter in usage than having the path specified.

Fair enough - but notice: 1) You are still in the shell, instead of 
running from the start menu; and 2) what if you want to import it and 
test a function with various inputs? You either implement a 
request/response in a __main__ block, or type "python" and then import foo.
More information about the Python-Dev mailing list

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