Bugfix in the NT Service

bzr revid: stephane@tinyerp.com-20081013213045-as7jsps8tvbrkv4s
This commit is contained in:
Stephane Wirtel 2008-10-13 23:30:45 +02:00
parent dd13d1a1d5
commit 262ca045db
1 changed files with 14 additions and 16 deletions

View File

@ -79,9 +79,7 @@ class OpenERPServerService(win32serviceutil.ServiceFramework):
service_dir = os.path.dirname(sys.argv[0]) service_dir = os.path.dirname(sys.argv[0])
server_dir = os.path.split(service_dir)[0] server_dir = os.path.split(service_dir)[0]
server_path = os.path.join(server_dir, 'openerp-server.exe') server_path = os.path.join(server_dir, 'openerp-server.exe')
self.terpprocess = subprocess.Popen([server_path], \ self.terpprocess = subprocess.Popen([server_path], cwd=server_dir, creationflags=win32process.CREATE_NO_WINDOW)
cwd=server_dir,
creationflags=win32process.CREATE_NO_WINDOW)
def StartControl(self,ws): def StartControl(self,ws):