[Tutor] How to run a python script
cperry172 at hotmail.com
Sun Feb 21 12:35:40 EST 2016
This is the shabang for Python
Cperry172 at hotmail.com
> On Feb 21, 2016, at 3:11 AM, Chris Warrick <kwpolska at gmail.com> wrote:
> Forwarding to mailing list, please use Reply All in the future.
>> On 21 February 2016 at 09:48, Erol Gericke <woodworm at cybersmart.co.za> wrote:
>> Hi Chris,
>> Thanks for your prompt reply, the problem has been solved!
>> I was using the 'python' terminal not the 'DOS' terminal.
>> I have created a new directory to hold the *.py scripts.
>> As I type with only two fingers I want to keep everything as short as
>> Is there a way to avoid the full path when running a script.
>> Thanks again, you have revived my interest in Python.
>> Erol Gericke
>>> Please paste the full error message, and your complete source code.
>>> Also, make sure you are running the commands in the regular command
>>> prompt window, and not in a Python-specific one.
>>> Also, your scripts should not live in C:\Python27, because they might
>>> conflict with other things.
> You can open command prompt in the directory of your scripts  or
> put them in a directory that doesn’t require a lot of typing (C:\py
> for example).
> PS. it’s not the “DOS” terminal, it’s the command prompt (cmd.exe).
> DOS is not part of Windows NT/2000/XP and better, and rightfully so.
> : In Windows 8?/10, available from the File menu. Otherwise:
> Chris Warrick <https://chriswarrick.com/>
> PGP: 5EAAEA16
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
More information about the Tutor