×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    7

    recurse folder,installing python file in private folder etc

    hello again all... (sorry if my english bad)

    i wanna ask some question :
    1. how to recurse every folder on a drive and search file in every folder of it
    2. how to install pyd to private folder on s60 3rd? i've made sis that will install files to c:\sys\lib or c:\resource. i've made 3 sis, unsigned, self sign and developer sign. If i install using unsigned and self signed, phone tell me capabilities not bla bla (i am forget the error). Then i signed it using developer certificate which i get from symbian free but the phone still tell me error unable to install. why? is it if we want to install some file to private folder we need more high access certificate or am i wrong in making sis?
    3. i wanna make such message application that can replace smiley :-) to emoticon if we open new sms we got and contain smiley or we create one,how to make it in python?

    thanx for the replies... (sorry..sorry for my english)

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    386

    Re: recurse folder,installing python file in private folder etc

    I only answer to question 1.

    Here is an example:
    Code:
    import os
    
    def find(dir, what):
        print dir
        for name in os.listdir(dir):
            path = os.path.join(dir, name)
            if name == what:
                return path
            if os.path.isdir(path):
                r = find(path, what)
                if r is not None:
                    return r
    
    print find('c:\\', 'ntldr')
    It will search for file/dir 'ntldr' on drive C:\ and return a full path or None if the file cannot be found. It will be slow because it prints out the path it is currently examining.

  3. #3
    Registered User
    Join Date
    Feb 2006
    Location
    Brazil
    Posts
    523

    Re: recurse folder,installing python file in private folder etc

    Quote Originally Posted by 0odevilzo0 View Post
    ...2. how to install pyd to private folder on s60 3rd? i've made sis that will install files to c:\sys\lib or c:\resource. i've made 3 sis, unsigned, self sign and developer sign. If i install using unsigned and self signed, phone tell me capabilities not bla bla (i am forget the error). Then i signed it using developer certificate which i get from symbian free but the phone still tell me error unable to install. why? is it if we want to install some file to private folder we need more high access certificate or am i wrong in making sis?...
    no, if you're installing files to your own application's private folder, you don't need any special capability.

    If phone is showing "Unable to install", the best you can do is posting your .pkg file here.If it was some capability issue, the error message would be more specific (and not only the generic "Unable to install")


    best regards
    Http_user_agent:
    NokiaN80-1/3.0 (4.0707.0.7)
    Series60/3.0
    Profile/MIDP-2.0
    Configuration/CLDC-1.1

  4. #4
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: recurse folder,installing python file in private folder etc

    Quote Originally Posted by 0odevilzo0 View Post
    hello again all... (sorry if my english bad)


    2. how to install pyd to private folder on s60 3rd? i've made sis that will install files to c:\sys\lib or c:\resource. i've made 3 sis, unsigned, self sign and developer sign. If i install using unsigned and self signed, phone tell me capabilities not bla bla (i am forget the error). Then i signed it using developer certificate which i get from symbian free but the phone still tell me error unable to install. why? is it if we want to install some file to private folder we need more high access certificate or am i wrong in making sis?

    thanx for the replies... (sorry..sorry for my english)
    Hello OodevilzoO and welcome to this Python DiBo

    On 2rd S60 phone you can install pyd files on the python path usually !:\system\libs but on 3rd it is mandatory installing pyd like exe file on !\sys\bin !!!
    There are only two ways for installing pyd :
    Using selfsigned sis file with a pyd file with restricted capabilities (only 5 :
    Or using unsigned sis file with a pyd file with more capabilities ( 13 ) but before installing on your 3rd device YOU MUST sign the sis file with you dev cert !!! After that you can install the pyd file contained in the signed sis file.

    So you can install both files but never in sys\lib (I don't think that this one exist by default and never in resource ! You must ALWAYS with 3rd phone installing the pyd in !:\SYS\BIN

    Now I think it's clearer for you ?

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

Similar Threads

  1. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  2. another Null pointer exception
    By kvchen1985 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-06-28, 15:33
  3. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  4. PC Connectity with VB6
    By mkintanar in forum PC Suite API and PC Connectivity SDK
    Replies: 5
    Last Post: 2003-09-24, 04:18
  5. Painting problem
    By guidopater in forum Mobile Java Media (Graphics & Sounds)
    Replies: 12
    Last Post: 2003-06-20, 08:53

Posting Permissions

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