m wrote:
I thought it should be:

DELIVERY = "/some/agent %s %s" %os.environ["RECIPIENT"],
    %os.environ["SENDER"]
(all on one line).

But that results in errors instead (bad syntax?) and does not pass the
substitution through.

I believe the problem is twofold: 1) bad python syntax? and 2.) wrong
variables?

I haven't evaluated what you're trying to achieve, but I can certainly help with your Python syntax problems. You want this:


DELIVERY = "/some/agent %s %s" %
    (os.environ["RECIPIENT"], os.environ["SENDER"])

again, all on one line. When you substitute more than one variable, you must past the entire list of substitution values as a single tuple (i.e. the round brackets and comma-delimited list of values).
_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to