def main(self,argv):
do stuff.......
if __name__ == '__main__':
main(sys.argv[1:])
When my script is run, how can I cause it to immediately run main() as a background process? It will run to completion and outputs information to a file.
I forgot to say...the goal is to be able to run this on any OS. I do not want to modify the way the script is called in the command line, I want the script itself to cause it to run in the background.