PythonCE Wiki : WindowsCEDifferences

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
In terms of platform-specific functionality PythonCE is of course most similar to Windows NT/2000/XP, but due to the many differences between Windows CE and other operating systems (including other versions of Windows), PythonCE has some differences and limitations. Some of these differences are fundamental while others may be eliminated in future.

Detecting PythonCE


If your Python scripts need to detect whether they are running on Windows CE, check whether os.name is
'ce'. The value of sys.platform is 'win32' (as of PythonCE 2.5) just like desktop versions of Windows, so you can use this fact if you are writing Windows-specific code that works on all versions of Windows.

Basic Operating System Differences



Python Standard Library


In the PythonCE 2.4.3 release, the following standard modules are missing:

Some of the modules that are present lack some functionality:

Current Directory Support


The Windows CE operating system does not support the concept of a "current directory", so PythonCE must emulate this functionality. When PythonCE is started in interactive mode, the emulated current directory is initially set to "\Temp". When PythonCE is started with a script filename on the command line, the emulated current directory is set the the directory containing the script. The current directory may be accessed using the usual functions os.getcwd() and os.chdir().

Most Python file I/O functions will use this emulated current directory when passed a relative path, but to ensure that your program behaves exactly as you expect, it is better to use absolute paths as often as possible.

There are no comments on this page. [Add comment]

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