[Tutor] executing file properly
Luke Paireepinart
rabidpoobear at gmail.com
Wed Aug 8 02:24:27 CEST 2007
Thorsten Kampe wrote:
> * 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 "..."
>
I'm pretty sure he meant "I didn't type out the whole path in this
e-mail so it wouldn't be > 80 characters and cause formatting issues"
not that he didn't type the whole path in his original code.
More information about the Tutor
mailing list