Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor nufun's Avatar
    Join Date
    May 2008
    Posts
    86
    Hi everybody, I was wondering which is the best choice when I need to distribute python interpreter within my app .sis file.
    I would like to prevent my application from not working just because user install interpreter on a different drive: what do you do usually? Do you force whole installation on a specific drive or do you choose other solutions?

  2. #2
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    Hi,

    I'm not sure but as far as I know the only way to make sure everything works according to plan is to restrict the installation to one drive. I for one prefer the phone memory (C:\) because all phones have that, while some may not have a memory card.

  3. #3
    Regular Contributor nufun's Avatar
    Join Date
    May 2008
    Posts
    86
    Yes, but the pys60 interpreter is installable everywhere: do I need to unsis it and makesis it again to force installation on a specific drive?

  4. #4
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    Probably. I don't see any other option for that.

    The only alternative I can think of is displaying a note before the installation, telling the user to install both the interpreter and the app on the same drive.

  5. #5
    Regular Contributor nufun's Avatar
    Join Date
    May 2008
    Posts
    86
    This would be nice as well, but I've tried with ensymble --textfile option but the note is displayed after drive choice: is there a way to have it displayed before?

  6. #6
    Nokia Developer Moderator croozeus's Avatar
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,635
    Hmph,

    You can do this. Merge Python with your application and force the resulting file to be installed on C:
    This could be done using Ensymble.

    And Btw, you do not need the Python Script Shell installed for running PyS60 applications. Its only Python for S60 that needs to be installed.

    Best Regards,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  7. #7
    Regular Contributor nufun's Avatar
    Join Date
    May 2008
    Posts
    86
    Quote Originally Posted by croozeus View Post
    You can do this. Merge Python with your application and force the resulting file to be installed on C:
    It's what I did, but it asks me where I want to install each merged .sis file, so I should force python installation on C: drive before merge it with my app .sis.

  8. #8
    Regular Contributor nufun's Avatar
    Join Date
    May 2008
    Posts
    86
    I solved in another way.
    I've added "e:\\resources\\" to system path, so my app can import custom library even if .sis file is installed on external drive.

    The code is

    Code:
    import os.path, sys
    path = 'e:\\resource\\'
    if os.path.exists(path):
            sys.path.append(path)
    just in case someone else has the same problem.

Similar Threads

  1. Replies: 2
    Last Post: 2008-10-17, 19:23
  2. j2me develops acceleration on N95????
    By polo-fei in forum Mobile Java General
    Replies: 14
    Last Post: 2008-07-24, 01:42
  3. Replies: 17
    Last Post: 2008-06-09, 16:39
  4. Python for S60 1.3.21 released
    By jplauril in forum Python
    Replies: 5
    Last Post: 2007-05-30, 07:48
  5. Exdending Python with C/C++
    By nile_mail in forum Python
    Replies: 8
    Last Post: 2007-04-09, 19:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved