[docs] documentation bug

Randy Henderson randalljhenderson at gmail.com
Tue Jul 25 18:02:45 EDT 2017


In the Python 3.6.2 tutorial section 6.1.1 "Executing modules as scripts,"
the code format
"python fibo.py <arguments>"
generates the following error in a Windows command shell:
"python: can't open file 'fibo.py': [Errno 2] No such file or directory".
This error is generated even if the script's path is listed in the user or
system PATH environment variable.

To get the code to run as is, the user has to first change the working
directory to the location of the script (e.g. "cd c:\python36\scripts").

If the user has not changed the working directory, then the user needs to
either specify the full path of the script (e.g. "python
c:\python36\scripts\fibo.py <arguments>") or use the format "python -m fibo
<arguments>".

Thanks,
Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20170725/81573d3c/attachment.html>


More information about the docs mailing list