Python lesson please

gene heskett gheskett at wdtv.com
Sun Nov 6 13:14:43 EST 2011


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
-- 
"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>
Most of the fear that spoils our life comes from attacking difficulties
before we get to them.
		-- Dr. Frank Crane



More information about the Python-list mailing list