def _reexec(updated_modules=None):
 if odoo.tools.osutil.is_running_as_nt_service():
  subprocess.call('net stop {0} && net start {0}'.format(nt_service_name), shell=True)
 exe = os.path.basename(sys.executable)
 args = stripped_sys_argv()
 if updated_modules:
  args += ['-u', ','.join(updated_modules)]
 if ((not args) or (args[0] != exe)):
  args.insert(0, exe)
 os.execv(sys.executable, args)

def _reexec ( updated_modules = None ) : if odoo . tools . osutil . is_running_as_nt_service ( ) : subprocess . call ( 'net stop {0} && net start {0}' . format ( nt_service_name ) , shell = True ) exe = os . path . basename ( sys . executable ) args = stripped_sys_argv ( ) if updated_modules : args += [ '-u' , ',' . join ( updated_modules ) ] if ( ( not args ) or ( args [ 0 ] != exe ) ) : args . insert ( 0 , exe ) os . execv ( sys . executable , args )
reexecute openerp-server process with the same arguments .