summaryrefslogtreecommitdiff
path: root/win32/OpenERPServerService.py
diff options
context:
space:
mode:
authorStephane Wirtel <stw@openerp.com>2011-12-21 18:38:33 +0100
committerStephane Wirtel <stw@openerp.com>2011-12-21 18:38:33 +0100
commitfd50a36583685288672f14eefd15b9ca8e967652 (patch)
tree373ece9ae275e8f6a68cfdc7b789a9643caa6b9b /win32/OpenERPServerService.py
parent0354c117a1f02d7d6657ae96eaf4afb6c141a177 (diff)
[FIX] Set the right directory in the service, set the right version
bzr revid: stw@openerp.com-20111221173833-k0k2vasmjp4f6u9q
Diffstat (limited to 'win32/OpenERPServerService.py')
-rw-r--r--win32/OpenERPServerService.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/win32/OpenERPServerService.py b/win32/OpenERPServerService.py
index bdf371aca68..bf7c83e74a4 100644
--- a/win32/OpenERPServerService.py
+++ b/win32/OpenERPServerService.py
@@ -34,10 +34,10 @@ import thread
class OpenERPServerService(win32serviceutil.ServiceFramework):
# required info
- _svc_name_ = "openerp-server-6.0"
- _svc_display_name_ = "OpenERP Server 6.0"
+ _svc_name_ = "openerp-server-6.1"
+ _svc_display_name_ = "OpenERP Server 6.1"
# optionnal info
- _svc_description_ = "OpenERP Server 6.0 service"
+ _svc_description_ = "OpenERP Server 6.1 service"
def __init__(self, args):
win32serviceutil.ServiceFramework.__init__(self, args)
@@ -66,7 +66,7 @@ class OpenERPServerService(win32serviceutil.ServiceFramework):
# The server's binary must be one directory above the service's binary (when py2exe'd the python libraries shouldn' mix)
service_dir = os.path.dirname(sys.argv[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, 'server', 'openerp-server.exe')
self.terpprocess = subprocess.Popen([server_path], cwd=server_dir, creationflags=win32process.CREATE_NO_WINDOW)