I have a function that resembles the one below. I\'m not sure how to use the os module to get back to my original working directory at the conclusion of the jar\'s execution
You simply need to add the line:
os.chdir(owd)
Just a note this was also answered in your other question.