using python to use script-generated signature in evolution

Asked by anandjeyahar

Hi, i have written a python script to generate a random signature (reading from a file). i am using print signature at the end of the script. Evolution encounters errors running the script and therefore produces just a '--'. How do i get the error message/log of what happened when evolution ran the script?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu evolution Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Krüger
Solved:
Last query:
Last reply:
Revision history for this message
Best Thomas Krüger (thkrueger) said :
#1

Please make sure that the shebang (magic line) at the beginning of the file is correct:
#!/usr/bin/python
and the the scripts permissions allow execution.
Then try if you can run the script from any working directory with it's full path.

Revision history for this message
Sam_ (and-sam) said :
#2

Error messages should be in ~/.xsession-errors, you can leave it open while reproducing the steps, reload it and scroll all away down to view error messages.
Or run evolution via terminal, reproduce the steps and monitor output.

Revision history for this message
anandjeyahar (anandjeyahar) said :
#3

Thanks Thomas Krüger, that solved my question.

Revision history for this message
anandjeyahar (anandjeyahar) said :
#4

Sam, i did figure out the run evolution from terminal and tried out but without the shebang it was creating problems. i had tested it from the terminal by running it with python filename. Any way, now i have problem with the way it is printing the newline character. the generated signature prints space for \n. Guess that has to do with the mime format. will do some googling on that one.