last line chopped from input file

Alan Kemp alan at alankemp.com
Sun Aug 21 14:25:23 EDT 2005


On Sun, 21 Aug 2005 13:41:14 -0400, Eric Lavigne <lavigne.eric at gmail.com>  
wrote:

>> A shorter python program would be:
>>
>>   os.command("debug\\curve-fit <input.txt >output.txt")
>
> I tried this program:
>   import os
>   os.command("debug\\curve-fit <input.txt >output.txt")
>
> My error message is:
>   AttributeError: 'module' object has no attribute 'command'
>
> I also could not find os.command in the help files. My Python version
> is 2.4 (latest is 2.4.1, just a bug-fix release).
>

I imagine thats was a typo for:

>>> os.system("debug\\curve-fit <input.txt >output.txt")

Alan





More information about the Python-list mailing list