From: Deepak S. <de...@mr...> - 2006-05-29 10:15:54
|
Hello I have a script named pyMSNt.py that I want to convert to windows service. I have tried myself but no luck. Here are the pyMSNt.py contents: #!/usr/bin/python # Make 'cwd'/src in the PYTHONPATH import sys, os, os.path PATH = os.path.abspath(os.path.dirname(sys.argv[0])) os.chdir(PATH) PATH = os.path.join(PATH, "src") sys.path[0] = PATH # Start the service import main main.main() Thanks Deepak Sakpal (de...@mr...) |