<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://www.mobile-j.de/snipsnap/rdf'>
    <s:Snip rdf:about='http://www.mobile-j.de/snipsnap/rdf#PYTHON/Distributing+Python+apps'
         s:cUser='bjoernQ'
         s:oUser='bjoernQ'
         s:mUser='bjoernQ'>
        <s:name>PYTHON/Distributing Python apps</s:name>
        <s:content>While I&apos;m not very familiar with python this might be obvious for you but since the python S60 port is really a nice toy for J2ME developers to play around and write little helper apps for out MIDlets this might be useful. (Since python has support for sockets we could write something that access the native symbian stuff for our MIDlets and connect to them via tcp/ip).&#xD;&#xA;&#xD;&#xA;The problem I was faced to was that I wanted to give a little python script to someone but don&apos;t wanted him to look into the code.&#xD;&#xA;&#xD;&#xA;I downloaded python 2.2.2 for my windows box and used the &quot;compiler&quot; module (compiler.compileFile) to compile my script. But when this compiled script was transfered to the phone the only option was &quot;install as a library&quot;. Since py2sis don&apos;t likes *.pyc files I decided to do the following:&#xD;&#xA;&#xD;&#xA;Compile the python-script as described. Let the user intall it as a module and do a very simple python script that just imports the compiled module. The minimal python script can then be packaged by py2sis. The enduser only needs to install the python runtime. Beam the *.pyc to the phone and install it and then install the created SIS.&#xD;&#xA;&#xD;&#xA;Wow. That was easy.&#xD;&#xA;&#xD;&#xA;I think it&apos;s quite possible to decompile the pyc file but it&apos;s harder than just open the *.py file in notepad.&#xD;&#xA;&#xD;&#xA;</s:content>
        <s:mTime>2005-02-05 16:34:10.558</s:mTime>
        <s:cTime>2005-02-05 16:34:10.558</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Getting the IMEI or not ...'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Sending SMS from MIDlet without user intervention'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Fun with sending mms from a midlet'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Getting content from a MIDlet into the phone'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/How to verify the phone&apos;s MSISDN'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Sending blinking sms to older Nokias ...'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Reading files from J2ME on a 6600'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Putting together BlueCove and avetanaOBEX'/>
                <rdf:li rdf:resource='#bjoernQ'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Start Real One Player from J2ME'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#start/2006-02-28/2'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#Products/S60 Screensaver Maker Pro'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Guessing the network operator'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Accelerometer BallGame code and binaries'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#j2me/start+real+one+player+from+j2me'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Accelerator BallGame code and binaries/'/>
                <rdf:li rdf:resource='http://www.mobile-j.de/snipsnap/rdf#J2ME/Using the N95 accelerometer in Java - kind of'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
