×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    22

    two question about python1.9.7

    today i installed python1.9.7.but i have two question. but in command line :import sys,print sys.argv,it raise a expect:AttributeError: 'module' object has no attribute 'argv'.
    but on python1.45,no this "AttributeError"....why???
    it's a bug?

    the second question is about extension module package.i download gdata-2.0.4 in http://code.google.com/p/gdata-python-client/....i copy the module package ATOM and GDATA to C:\\resource\\python25,,then on command:import ATOM ,raise expect:No module name ATOM,but i copy module package to C:\\resource ,and on python1.45 command line:import ATOM,No this expect.
    who can tell me why?and how can do??

  2. #2
    Registered User
    Join Date
    Oct 2007
    Posts
    22

    Re: two question about python1.9.7

    can someone help me?
    why in python for s60 2.0
    "sys" module has no attribute 'argv'

  3. #3
    Super Contributor
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    768

    Re: two question about python1.9.7

    Quote Originally Posted by psychologe View Post
    can someone help me?
    why in python for s60 2.0
    "sys" module has no attribute 'argv'
    I think the problem is a little bit older ...

    https://garage.maemo.org/tracker/ind...=854&atid=3201

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    35

    Re: two question about python1.9.7

    Is there any other way to read command line arguments in python?

  5. #5
    Registered User
    Join Date
    Dec 2005
    Location
    Recife Pernambuco
    Posts
    40

    Re: two question about python1.9.7

    I don't think that the args from sys will work.

    You can still "emulate" the arguments coming from the console by:

    1 - Putting a appuifw.query dialog for requesting the appropriate arguments.

    2 - Putting the arguments into a file, and make your program to read this file before the running.


    Those, i think, are note a official and neither a pretty solution, but it could help you in this task.


    Cheers,

    Marcel
    Marcel Pinheiro Caraciolo
    5800 XM, E63, N95, N800

    http://mobideia.blogspot.com
    http://croozeus.com/blogs/

Similar Threads

  1. CCalSession -> question
    By rsiudak in forum Symbian
    Replies: 0
    Last Post: 2009-11-04, 16:02
  2. CBase question
    By eric_cartman in forum Symbian
    Replies: 9
    Last Post: 2009-09-09, 19:06
  3. Replies: 0
    Last Post: 2009-08-28, 09:39
  4. Annoying question when dialing by bluetooth
    By tejohf in forum Bluetooth Technology
    Replies: 0
    Last Post: 2003-09-04, 19:56
  5. Replies: 0
    Last Post: 2003-04-07, 09:52

Posting Permissions

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