I've created a python script that passes selected images to a queue where they are processed by a program on the server. Since the processing takes longer than a user would likely be logged in I have the script exit once all the images are queued.
I'd like to have the resulting image uploaded to the same dataset as the raw image, however since the script has exited I can't use that session to provide user credentials for the upload.
Does anyone know of anyway to fork the script session and pass its key to the processing program to hold so it can use this to upload the resulting image?
Thanks in advance.