Submitting newline character

Hi,

I am trying to submit the Shotgun Toolkit Context as an environment variable with a job. The context is a pickle serialized string which has newline characters (\n) in it. The problem is the submission doesn’t work because of the newline character (Deadline complains about unrecognized key-value pairs). If I manually change the environment variable on the job, Deadline can handle the newline character and I can read it later from inside the job.

I tried escaping the newline character (.replace(’\n’, ‘\n’)) which works for the submission but reverting the replacement (.replace(’\n’, ‘\n’)) doesn’t seem to revert the change completely because unpickling the string throws an error.

Did anybody try this already and has a good solution handy?

Thanks,
Sebastian

I just found another post regarding multi-line strings (https://forums.thinkboxsoftware.com/viewtopic.php?f=11&t=13675) where a semi-colon is used to escape newline characters. This seem to work. Is this the official way of submitting multi-line strings?

Thanks,
Sebastian

Hello,

I do believe that this the current recommended method used in Deadline.

Great. Thanks Dwight.

Cheers,
Sebastian