PythonCE Wiki : UsingPythonCE

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

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.

image

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


There are 1267 comments on this page. [Display comments]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 0.3948 seconds