Re: Unix programmers and Idle

2009-04-03 Thread Dale Amon
Just in case anyone else finds it useful, to be precise I use: if opts.man: p1 = Popen(["echo", __doc__], stdout=PIPE) p2 = Popen(["pod2man"], stdin=p1.stdout, stdout=PIPE) p3 = Popen(["nroff","-man"], stdin=p2.stdout, stdout=PIPE) output = p3.co

Re: Unix programmers and Idle

2009-04-03 Thread Dale Amon
On Mon, Mar 30, 2009 at 10:54:56PM -0700, Niklas Norrthon wrote: > I make sure my scripts are on the form: > > # imports > # global initialization (not depending on sys.argv) > def main(): > # initialization (might depend on sys.argv) > # script logic > # other functions > if __name__ == '

Re: Unix programmers and Idle

2009-04-03 Thread MRAB
Dale Amon wrote: On Mon, Mar 30, 2009 at 08:11:10PM -0500, Dave Angel wrote: I don't know what Idle has to do with it. sys.args contains the command line arguments used to start a script. Dale Amon wrote: I wonder if someone could point me at documentation on how to debug some of the standa

Re: Unix programmers and Idle

2009-03-30 Thread Niklas Norrthon
On 31 Mar, 01:16, Dale Amon wrote: > I wonder if someone could point me at documentation > on how to debug some of the standard Unix type things > in Idle. I cannot seem to figure out how to set my > argument line for the program I am debugging in an Idle > window. for example: > >         vlmdeck

Re: Unix programmers and Idle

2009-03-30 Thread Dale Amon
On Mon, Mar 30, 2009 at 09:47:24PM -0500, Dave Angel wrote: > See http://docs.python.org/library/idle.html and search for command line > > According to that page (for Python 2.6.1), you can set those parameters > on the command line that starts IDLE itself. > > I haven't tried it yet, as I'm u

Re: Unix programmers and Idle

2009-03-30 Thread Gabriel Genellina
En Mon, 30 Mar 2009 23:47:24 -0300, Dave Angel escribió: See http://docs.python.org/library/idle.html and search for command line According to that page (for Python 2.6.1), you can set those parameters on the command line that starts IDLE itself. Well, that's not terribly useful, I'

Re: Unix programmers and Idle

2009-03-30 Thread Dave Angel
See http://docs.python.org/library/idle.html and search for command line According to that page (for Python 2.6.1), you can set those parameters on the command line that starts IDLE itself. I haven't tried it yet, as I'm using Komodo. Dale Amon wrote: On Mon, Mar 30, 2009 at 08:11:10PM -0

Re: Unix programmers and Idle

2009-03-30 Thread MRAB
Gabriel Genellina wrote: En Mon, 30 Mar 2009 22:21:12 -0300, Dale Amon escribió: vlmdeckcheck.py --strict --debug file.dat There must be a way to tell it what the command line args are for the test run but I can't find it so far. The line above represent what I want to emulate within id

Re: Unix programmers and Idle

2009-03-30 Thread Gabriel Genellina
En Mon, 30 Mar 2009 22:21:12 -0300, Dale Amon escribió: vlmdeckcheck.py --strict --debug file.dat There must be a way to tell it what the command line args are for the test run but I can't find it so far. The line above represent what I want to emulate within idle. If you run idle, s

Re: Unix programmers and Idle

2009-03-30 Thread Dale Amon
On Mon, Mar 30, 2009 at 08:11:10PM -0500, Dave Angel wrote: > I don't know what Idle has to do with it. sys.args contains the command > line arguments used to start a script. > > Dale Amon wrote: >> I wonder if someone could point me at documentation on how to debug >> some of the standard Unix

Re: Unix programmers and Idle

2009-03-30 Thread prakash jp
let run-cmd be used why go for IDLE 2009/3/31 Dale Amon > I wonder if someone could point me at documentation > on how to debug some of the standard Unix type things > in Idle. I cannot seem to figure out how to set my > argument line for the program I am debugging in an Idle > window. for examp

Re: Unix programmers and Idle

2009-03-30 Thread Dave Angel
I don't know what Idle has to do with it. sys.args contains the command line arguments used to start a script. Dale Amon wrote: I wonder if someone could point me at documentation on how to debug some of the standard Unix type things in Idle. I cannot seem to figure out how to set my argume

Unix programmers and Idle

2009-03-30 Thread Dale Amon
I wonder if someone could point me at documentation on how to debug some of the standard Unix type things in Idle. I cannot seem to figure out how to set my argument line for the program I am debugging in an Idle window. for example: vlmdeckcheck.py --strict --debug file.dat There must b