| Reply | « Previous Thread | Next Thread » |
|
Hi,
My application has multiple python script files. 1.How do I make a sys for it? I am using this command to make a sis if I got a single file Code:
python ensymble_python2.5-0.26.py py2sis --appname=MyApplication --vendor=MyName --verbose myapp.py myapp.sis If I got two script files - window.py which contains all my user defined classes and a myapp.py which accesses the user defined classes in window.py, how do I test my myapp.py on the emulator ? I have tried following the instructions on HTML Code:
http://discussion.forum.nokia.com/forum/showthread.php?=127199&highlight=multiple+files http://wiki.forum.nokia.com/index.php/Python_modules Btw, I am working with S60 3rdEdition FP1 and testing the application on N95 8GB. Thanks&Regards. |
| soontobeared |
| View Public Profile |
| Find all posts by soontobeared |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Online
Forum Nokia Champion
|
||
|
Quote:
Quote:
Try putting window.py in c:\python and doing: Code:
import sys
sys.path.append('c\\python')
import window
|
|
Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
gaba88
Online
Forum Nokia Champion
|
||
|
Quote:
you need to use the extrasdir option of Py2sis command in ensymble and you can use the extrasdir option something like this. Code:
myapp/
default.py
mymodule1.py
mymodule2/
__init__.py
modulefunc1.py
modulefunc2.py
data/
resource/
apps/
mydata.dat
Code:
ensymble.py py2sis --extrasdir=data --verbose myapp Quote:
Code:
import sys
sys.path.append("c:\\Python")
import module
![]() hope this all helps you enjoy pythoning Gaba88 EDIT: sorry bogdan was faster then me Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
You may also want to check this technical solution: SIS installation on the S60 3rd edition emulator
BR, Rafael. |
|
Thankyou Bogdan, Gaba and Rafael,
I have fixed everything. |
| soontobeared |
| View Public Profile |
| Find all posts by soontobeared |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Data files in SIS / emulator with Carbide C++ | jonmccune | Symbian Tools & SDKs | 2 | 2008-06-29 22:36 |
| Can AppTestLite test my sis? | truf | Installation, Certification and Security | 1 | 2007-08-24 15:02 |
| Creating and installing SIS on emulator | pbmau | Installation, Certification and Security | 2 | 2007-07-02 09:29 |
| Emulator screen gone... Help needed | meihuadao | Symbian Tools & SDKs | 4 | 2006-03-22 14:30 |
| BT testing and debugging on emulator | tote | Bluetooth Technology | 2 | 2002-10-28 10:28 |