| Reply | « Previous Thread | Next Thread » |
|
There are at least two ways to modify/affect the behaviour of your PyS60 applications:
1) during distribution (i.e. while installing the SIS file) or 2) during runtime. For the first item you can e.g. demand that your script is only installed on a device which contains a certain version of PyS60 already installed. This can be controlled from the "pkg" file of your application, from the SDK documentation: Quote:
Code:
; Depends on PyS60 being installed
(0x10201510), 1, 3, 0, {"Python for S60"}
(notice that there might be other interesting things in the "pkg"-syntax also, just search your S60 SDK with the term "pkg". Side note: this tip could be actually a feature request for future versions of "py2sis") The second item, i.e. runtime versioning, contains a number of different possibilities: 1) What PyS60 version are we running? Are we running in an emulator or device? Example in my 6600: Code:
>>> import e32 >>> e32.s60_version_info (2, 0) >>> e32.pys60_version '1.3.0 alpha' >>> e32.pys60_version_info (1, 3, 0, 'alpha', 0) >>> e32.in_emulator() #in 6600 currently 0 >>> http://discussion.forum.nokia.com/fo...758#post190758 |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |