Post Job Script as auxiliary file

Hey,

I would like to pass a python script as an auxiliary file to a job, so I can use it as a Post Job Script. This is al done in a custom submitter in python. I can easily add the script to the auxiliary files but how do I call the script as the Post Job Script? The docs say it should be an absolute path.

Should I use the original file path?

The python script for the post job script would preferably made dynamically and saved as a temp file.

Is this possible?

Thanks in advance.

Ralph