64
64
# The server finds now its configuration automatically on Windows
65
65
# We start the ERP Web as an independent process, but we keep its handle
66
66
# The server's binary must be one directory above the service's binary (when py2exe'd the python libraries shouldn' mix)
67
68
service_dir = os.path.dirname(sys.argv[0])
68
69
server_dir = os.path.split(service_dir)[0]
69
70
server_path = os.path.join(server_dir, 'openerp-web.exe')
70
72
self.openerp_process = subprocess.Popen([server_path], cwd=server_dir, creationflags=win32process.CREATE_NO_WINDOW)