Interactive use
If you used one of the automated installers, you should have a shortcut to the interactive Python interpreter in your Programs folder. When you run this shortcut, the graphical Python shell will appear.
You may enter statements and expressions just like a PC console-based Python interpreter.
Running scripts
To run an interactive script of some kind, the easiest way is to activate the .py file in File Explorer. Since
PythonCE is associated with .py and .pyw files, this will execute the script.
Another way to run a script is to start the interactive interpreter and use execfile(), e.g.:
execfile('\\My Documents\\hello.py')
If your device has a console command prompt then you can use that to run
PythonCE and pass an argument for the script to run. Please ensure that the script is specified as an absolute path.
There was a CE console at
http://www.symbolictools.de/public/pocketconsole/∞.
PythonCE Command Line Options
- /nopcceshell
- Starts PythonCE without the graphical shell. This is only useful when also passing a script filename on the command line.
- /new
- By default, PythonCE only allows one instance to be running at a time. This option allow you to start a multiple instances.
There are 1267 comments on this page. [Display comments]