manipulating files within 'for'

Arnaud Delobelle arnodel at googlemail.com
Fri Sep 12 13:43:55 EDT 2008


On Sep 12, 6:11 pm, Ben Keshet <kesh... at umbc.edu> wrote:
> Hi Pythoneers,
>
> I have a question about a code I wrote with the help of someone. The
> code below copy a few lines from different files into one file. It works
> fine as it is given here and generates the new file 'pockets.out'
> correctly, but says:"....py returned exit code 0". However, if I add
> more values to 'receptor' (say, receptor = ['1AZM' '1ADS']) it gives an
> error: "Exception raised while running script".

You should post the full error if you want some help which is more
than speculation

>
> Can anyone please advice me? Why is it giving an error on multiple x but
> runs well with one (I made sure that all files and folders exist, etc.).
> What does exit code 0 mean? what does "exception raised" mean?

I guess you are on Windows, but how do you run your script?  Do you do
it from the command line or do you use some IDE?

--
Arnaud




More information about the Python-list mailing list