[Tutor] executing file properly

Thorsten Kampe thorsten at thorstenkampe.de
Tue Aug 7 13:18:09 CEST 2007


* Vivian Tini (Tue,  7 Aug 2007 12:20:29 +0200)
> The TestCases executable works properly when I run it from the shell prompt.
> 
> Then I try to run it from the Python command prompt by the following script:
> >>> import os
> >>> os.system("home/.../.../.../TestCases") 
> 
> I used "..." to type it short.
> 
> Then it gives the following error output:
> cannot open Des.in 
> 
> Well in this case tbe os.system command is typed correctly already since this 
> the error message given out is written in the code itself. So the executable 
> run already only when running from Python prompt it cannot open this file.
> 
> Could anyone suggest me what would be the cause of this problem?

You said it yourself: "I used "..." to type it short."

> And how  should I handle it ?

Even simpler: don't use "..."



More information about the Tutor mailing list