Python
|
Introduction
It is often more convenient to execute (run) a python script by double-clicking than
by opening a CMD window (Windows) or a terminal (OSX & Linux) and entering, Listing 1 (demo.py)
Part of the code is taken from this Stack Overflow page. |
Windows
Create a .bat file and give it the same name as the python script, for example,
|
OSX
Create a file and give it the same name as the python script, for example,
|
Linux
Create a file and give it the same name as the python script, for example,
|
© 2002- Malcolm Kesson. All rights reserved.