[BlackBerry-Python] python on Q10

Peter Hansen peter at engcorp.com
Sat Apr 6 16:44:53 EDT 2013


On 2013-04-06 16:31, Peter Hansen wrote:
> On 2013-02-28 18:17, Ryan Wooden wrote:
>> There were in fact some changes to the python 3.2 runtime for 10.1. As
>> of the current SDK, the python runtime will only look for .pyc files
>> when loading modules (to speed up launch times). This _may_ be changed
>> back before the 10.1 gold release. To make it act like it does in 10.0,
>> you can add `<env var="PYTHON_DEFAULT_IMPORT_ORDER" value="1"/>` to your
>> bar-descriptor.xml file.
>
> Has anyone tried this with the Dev Alpha C, which in my case is on
> 10.1.0.1022?

Problem solved.

It's actually PYTHON_IMPORT_DEFAULT_ORDER

Not the reversal of the words DEFAULT and IMPORT in that.

When the correct variable is set, you'll also see this confirmed when 
you launch python3.2 (note the line with "debug"):

$ python3.2
debug PYTHON_IMPORT_DEFAULT_ORDER enabled
Python 3.2.2 (default, Mar 14 2013, 01:40:45)
 >>> import testit
hello, world

-Peter


More information about the BlackBerry-Python mailing list