execl difficulty

Gerrit Holl gerrit at nl.linux.org
Mon Dec 15 09:37:11 EST 2003


Fredrik Lundh wrote:
> "python newbie" wrote:
> > Can anyone tell me why this would cause "Invalid Number of Parameters" while
> > trying to compile (or interpret or whatever)
> >
> > import os
> > os.execl("C:/WINDOWS/system32/xcopy.exe","E:/MainWeb/dreampics/*.*","E:/Main
> > Web/dp")
> >
> > Here's what the Python reference says:
> >      execl(path,arg0, arg1, ...)

> (are you sure you want os.exec, btw?  os.system or os.spawn* might
> be a better choice...)

Or shutil.copytree?

Gerrit.

-- 
166. If a man take wives for his son, but take no wife for his minor
son, and if then he die: if the sons divide the estate, they shall set
aside besides his portion the money for the "purchase price" for the minor
brother who had taken no wife as yet, and secure a wife for him.
          -- 1780 BC, Hammurabi, Code of Law
-- 
Asperger's Syndrome - a personal approach:
	http://people.nl.linux.org/~gerrit/english/





More information about the Python-list mailing list