You Are Here:

Community: Developer Discussion Boards

#1 Old Question Ensymble Question (Probably easy, but i'm new to Ensymble) - 2008-12-11, 11:48

Join Date: Sep 2008
Posts: 9
i5009820
Offline
Registered User
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()
helper_module1.py

Code:
class HelperClass1:
   def __init__(self):
      pass
helper_module2.py

Code:
class HelperClass2:
   def __init__(self):
      pass
My thought was that ensymble would include these helper-modules automatically while running the py2sis command, but in my test project, this does not seem to be the case. The installed application crashes while attempting to include other (*.py) modules. What would be the best scenario to get this running?

Thanks in advance!
Best regards,
Dirk
Reply With Quote

#2 Old Re: Ensymble Question (Probably easy, but i'm new to Ensymble) - 2008-12-11, 12:44

Join Date: Sep 2008
Posts: 9
i5009820
Offline
Registered User
I've figured it out! I did'nt know it was possible to run py2sis on a directory instead of a file.

Thanks anyways
Reply With Quote

#3 Old Re: Ensymble Question (Probably easy, but i'm new to Ensymble) - 2009-03-13, 03:24

Join Date: Jul 2008
Posts: 6
danburney999
Offline
Registered User
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
Reply With Quote

#4 Old Re: Ensymble Question (Probably easy, but i'm new to Ensymble) - 2009-03-13, 04:14

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
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
Then simply use the extrasdir option in the py2sis command of ensymble.

Code:
ensymble.py py2sis --extrasdir=data --verbose myapp
Hope this helps you.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ