Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: how to pass parameter to a python script when running it in theinteractive shell?

Reply
Thread Tools

Re: how to pass parameter to a python script when running it in theinteractive shell?

 
 
David Tweet
Guest
Posts: n/a
 
      12-06-2007
This should work:

python -i myscript.py --cl --cs 5 --ce 6 --bw 7 --set 1

On Dec 5, 2007 6:31 PM, wang frank <> wrote:
>
>
> Hi,
>
> I am debugging a python script which takes a set of paramters. In the
> regular shell, I type:
>
> myscript.py --cl --cs 5 --ce 6 --bw 7 --set 1
>
> However I want to debug the code in the interactive python shell, I do not
> know how to run it. I know that
> execfile("myscript.py")
>
> will run the script. But I could not figure out how to pass those
> parameters.
>
> Could some one help me to find out the solution?
>
> Thanks
>
> Frank
>
> ________________________________
> $B$[$i!"JQ$o$C$?$G$7$g!)!!%^%$%/%m%=%U%H$H$$$C$7$g$K!"<!$N%G%8%?%k%i%$%U$X(B http://go.windowslive.jp/
> --
> http://mail.python.org/mailman/listinfo/python-list
>




--
-David
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to pass a parameter for a function parameter in a function AzamSharp Javascript 2 07-05-2008 12:24 AM
function returns , but variable values has not changed in theinteractive prompt davidj411 Python 2 05-25-2008 04:49 AM
modify a long-running python script while it is running? Benjamin Rutt Python 2 12-20-2005 01:42 PM
Server-side script with input parameter from Client-side script Magnus Blomberg ASP .Net 3 04-14-2005 12:21 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57