| Reply | « Previous Thread | Next Thread » |
|
Hello everybody,
I have a -probably silly- question about Ensymble. Is there a command (in the build process of a sis file) to include other python modules then the MAIN python module? What I mean: application_main.py: Code:
import helper_module1
import helper_module2
class AppMain:
def __init__(self):
h1 = helper_module1.HelperClass1()
h2 = helper_module1.HelperClass2()
Code:
class HelperClass1:
def __init__(self):
pass
Code:
class HelperClass2:
def __init__(self):
pass
Thanks in advance! Best regards, Dirk |
I've figured it out! I did'nt know it was possible to run py2sis on a directory instead of a file.Thanks anyways ![]() |
|
Hi Dirk
As you answered your own question I wondered if you would be able to answer mine ![]() At the moment I have: ensymble.py py2sis myapp.py ensymble.py mergesis myapp_v1_0_0.sis PythonForS60_1_4_5_3rdEd.sis myapp_v1_0_0_andPyS60.sis myapp at the moment just contains appuifw.note("hello world") The actual application that I have been testing in the emulator and through the shell on the phone is currently structured that there is myapp.py in the \\python\\ folder and functions.py in \\python\\lib\\ folder. myapp.py uses the functions of functions.py by "import functions" and then calling the functions by functions.function() How I would I use ensymble / ensymble on a dir/ the extrasdir parameter / create loads of sis files and merge them ? I don't mind changing the structure of the files of my app, I just don't really fancy putting everything in on file Many Thanks Dan |
| danburney999 |
| View Public Profile |
| Find all posts by danburney999 |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
hello danburney999
according to your wishlist ![]() .ensymbles extrasdir option will be the best. First of all follow a proper directory structure like below. 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 ![]() Enjoy Pythoning Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Following Getting Starting Guide - Getting Errors (Easy Question) | nichojo | Symbian Tools & SDKs | 2 | 2008-01-22 16:14 |
| Ensymble vs PyS60 v1.4 | jking_ok | Python | 5 | 2007-07-16 08:17 |
| Ensymble and packaging 2 sis-files | big_pig | Python | 4 | 2007-01-27 11:43 |
| Question on support of dll's | sanju_v | General Symbian C++ | 1 | 2003-03-05 14:09 |
| Sending data using iAcceptedSocket (Urgent question) | okegame | Bluetooth Technology | 1 | 1970-01-01 02:00 |