Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15393 > unrolled thread

Re: Python lesson please

Started bygene heskett <gheskett@wdtv.com>
First post2011-11-06 18:10 -0500
Last post2011-11-06 18:10 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python lesson please gene heskett <gheskett@wdtv.com> - 2011-11-06 18:10 -0500

#15393 — Re: Python lesson please

Fromgene heskett <gheskett@wdtv.com>
Date2011-11-06 18:10 -0500
SubjectRe: Python lesson please
Message-ID<mailman.2476.1320621009.27778.python-list@python.org>
On Sunday, November 06, 2011 06:07:36 PM Dave Angel did opine:

> On 11/06/2011 01:14 PM, gene heskett wrote:
> > Greetings experts:
> > 
> > I just dl'd the duqu driver finder script from a link to NSS on /.,
> > and fixed enough of the tabs in it to make it run error-free.  At
> > least python isn't having a litter of cows over the indentation now.
> > 
> > But it also runs instantly on linux.
> > 
> > This line looks suspect to me:
> >   rootdir = sys.argv[1]
> > 
> > And I have a suspicion it is null on a linux box.
> > 
> > How can I fix that best?
> > 
> > Thanks.
> > 
> > Cheers, Gene
> 
> Nothing wrong with that line, assuming the user of the script happened
> to provide an argument for rootpath.  Probably it should be preceded by
> a a conditional:
> 
>      if len(argv) <2:
>             tell.user.that.she's.missing.the.rootdir.parameter
>       else:
>             rootdir = sys.argv[1]
>             etc.
> 
> What does the help text show when you run the script with the --help
> argument?

It has no --help:
[root@coyote gene]# ./duqu-drivers-detect.py --help
[root@coyote gene]#

Sorry.

Thanks & Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene>
Expedience is the best teacher.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web