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