[Tutor] How to run a python script

Chad Perry cperry172 at hotmail.com
Sun Feb 21 12:34:26 EST 2016

Can you share the knowledge on what you did. I love Python it's easy...to use most of the time


Chad Perry
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
>> possible.
>> Is there a way to avoid the full path when running a script.
>> Thanks again, you have revived my interest in Python.
>> Regards,
>> 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 [0] 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.
> [0]: In Windows 8?/10, available from the File menu. Otherwise:
> http://www.askvg.com/enable-open-command-window-here-option-in-context-menu-in-windows-vista/
> -- 
> Chris Warrick <https://chriswarrick.com/>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list