| Reply | « Previous Thread | Next Thread » |
|
Hi,
I am in the mists of trying to package my python application and wanted some pointers on how I should work with file locations and the rest, or if there is a nice tutorial anywhere a pointer to it. Here are the questions I have: 1) How should I reference the data files that my program uses? Explanation: My program has certain configuration files that it uses. Should I have my program generate them after its installed or can I package them in a particular location with ensymble? 2) When I am developing an application in python, I have a directory structure where the files reside depending on what they do, later when I run the program in the phone I add this files to the path before importing them. Should I stop doing this and just have them all in the base directory? 3) Are there any other differences that I should know about when I am trying to make programs to be installed and when I just run them through the python program in the phone? Thanks |
| federico2929 |
| View Public Profile |
| Find all posts by federico2929 |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Online
Forum Nokia Champion
|
|
|
Quote:
It's supposed to look something like this (took me a while to find out about the appuifw.app.set_exit): Code:
def quit():
app_lock.signal()
appuifw.app.set_exit()
|
|
> 1) How should I reference the data files that my program uses?
I guess configuration files should go to the UID private folder (/private/$UID) of your application on S60 3.0. Uninstaller should clean up these files. For example, you can add zero sized files into your SIS/PKG so that Symbian installer knows about the files even though they don't have meaningful content during the installation. > When I am developing an application in python, I have a directory structure where the files reside depending on what they do, later when I run the program in the phone I add this files to the path before importing them. Should I stop doing this and just have them all in the base directory? This is ok. However, .py (or compiled .pyc) module files should be nested under the private folder of the application, so that third parties cannot mess with them (easily). > Are there any other differences that I should know about when I am trying to make programs to be installed and when I just run them through the python program in the phone? Yes. Stand-alone executables need certification and capabilities assigned for them. This is not relevant for the PyS60 shell (python program in the phone), since it's signed by Nokia. Certification is major Pain In The Ass on Symbian, so be prepared to learn it in hard way ![]() -Mikko Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Launching a dialog when the application starts | Uriah Eisenstein | Symbian User Interface | 10 | 2009-03-31 10:06 |
| How to send an application in background using Python for S60 ??? | smilesnigam | Python | 0 | 2007-12-22 08:13 |
| How can the WAP browser communicate to J2ME application? | hbfornies | Mobile Java General | 20 | 2007-03-02 17:32 |
| Changing the ordinal position of an exteranl application. | Shaikuny | Symbian User Interface | 1 | 2004-12-30 08:32 |
| Changing ordinal position of an external application. | Shaikuny | General Symbian C++ | 0 | 2004-12-13 12:05 |