Converting argv to variable

Klaus Alexander Seistrup klaus at seistrup.dk
Sat Jul 22 09:15:24 EDT 2006


Tom skrev:

> newDirectory = str(sys.argv[1:])

Try

	newDir = '/'.join(sys.argv[1:])
or
	newDir = sys.argv[1]
or
	for newDir in sys.argv[1:]:
	    :

or something along those lines, depending on how you wish to 
interpret the commandline.

Cheers, 

-- 
Klaus Alexander Seistrup
Copenhagen, Denmark
http://surdej.dk/



More information about the Python-list mailing list