| Reply | « Previous Thread | Next Thread » |
|
I went through the documenation but I can't find out how I should package my script and images to convert them to one .sis file. I know py2sis can take a directory as an argument, but what should then be the path (in my source) to the imagefile?
And can I improve the application speed by compiling the app to a .pyc file? |
| bercobeute |
| View Public Profile |
| Find all posts by bercobeute |
|
Quote:
First part of the question: "py2sis" takes everything from the directory given as command line parameter and puts those files inside the created sis-file ("testi" is the directory to be packaged): Code:
C:\Nokia\Tools\Python_for_Series_60\testi>dir
Volume in drive C has no label.
Volume Serial Number is 28DF-1C50
Directory of C:\Nokia\Tools\Python_for_Series_60\testi
16.08.2005 11:22 <DIR> .
16.08.2005 11:22 <DIR> ..
15.08.2005 10:36 2,635 default.py
15.08.2005 10:36 2,635 myPNG.png
2 File(s) 5,270 bytes
2 Dir(s) 19,815,137,280 bytes free
...
C:\Nokia\Tools\Python_for_Series_60>py2sis testi c:\temp\myTest.sis --uid=0x0123
4567 --leavetemp --appname=myTest
Creating SIS for SDK2.0 and later
Processing C:\Nokia\Tools\Python_for_Series_60\temp\myTest.pkg...
Created c:\temp\myTest.sis
C:\Nokia\Tools\Python_for_Series_60>dir temp
Volume in drive C has no label.
Volume Serial Number is 28DF-1C50
Directory of C:\Nokia\Tools\Python_for_Series_60\temp
16.08.2005 11:23 <DIR> .
16.08.2005 11:23 <DIR> ..
16.08.2005 11:23 2,635 default.py
16.08.2005 11:23 2,635 myPNG.png
16.08.2005 11:23 1,692 myTest.app
16.08.2005 11:23 401 myTest.pkg
16.08.2005 11:23 337 myTest.rsc
5 File(s) 7,700 bytes
2 Dir(s) 19,816,230,912 bytes free
C:\Nokia\Tools\Python_for_Series_60>cd \temp
C:\Temp>unsis
usage: unsis.pl <sis file or dir> <target dir> at C:\Program Files\Common Files\
Symbian\Tools/unsis.pl line 14.
C:\Temp>mkdir myTemp
C:\Temp>unsis myTest.sis myTemp
Processing: myTest.sis
C:\Temp>tree myTemp
Folder PATH listing
Volume serial number is 28DF-1C50
C:\TEMP\MYTEMP
+---system
+---apps
+---mytest
C:\Temp>cd myTemp\system\apps\mytest
C:\Temp\myTemp\system\apps\mytest>dir
Volume in drive C has no label.
Volume Serial Number is 28DF-1C50
Directory of C:\Temp\myTemp\system\apps\mytest
16.08.2005 11:29 <DIR> .
16.08.2005 11:29 <DIR> ..
16.08.2005 11:29 2,480 default.py
16.08.2005 11:29 2,635 mypng.png
16.08.2005 11:29 1,692 mytest.app
16.08.2005 11:29 337 mytest.rsc
4 File(s) 7,144 bytes
2 Dir(s) 19,816,194,048 bytes free
C:\Temp\myTemp\system\apps\mytest>
Another possibility exists also, although not recommended, check the contents of the ".pkg"-file which was left into the "temp" directory by "py2sis" ("--leavetemp" switch): Code:
C:\Nokia\Tools\Python_for_Series_60\temp>more myTest.pkg
;
; Standalone Python for S60 app
;
;Languages
&EN
;
;
#{"myTest"},(0x01234567),1,0,0
;
;Supports Series 60 v 2.0
;
(0x101F7960), 0, 0, 0, {"Series60ProductID"}
;
; Files to install:
"default.py" -"!:\system\apps\myTest\default.py"
"myPNG.png" -"!:\system\apps\myTest\myPNG.png"
"myTest.app" -"!:\system\apps\myTest\myTest.app"
"myTest.rsc" -"!:\system\apps\myTest\myTest.rsc"
C:\Nokia\Tools\Python_for_Series_60\temp>
In summary I think a function to reveal in which folder or drive the application dll was loaded from would be useful. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |