parameters: (self)
docstring: Calls the regular ``finalize_options()`` method and adjusts the path to
          the 'gateone' script inside init scripts, .conf, and .service files.
docstring_summary: Calls the regular ``finalize_options()`` method and adjusts the path to
          the 'gateone' script inside init scripts, .conf, and .service files.
docstring_tokens: Calls the regular finalize_options () method and adjusts the path to the gateone script inside init scripts . conf and . service files .
function: def finalize_options(self):
          """
          Calls the regular ``finalize_options()`` method and adjusts the path to
          the 'gateone' script inside init scripts, .conf, and .service files.
          """
          install.finalize_options(self)
          if skip_init:
              return
          gateone_path = os.path.join(self.install_scripts, 'gateone')
          if os.path.exists(temp_script_path):
              with io.open(temp_script_path, encoding='utf-8') as f:
                  temp = f.read()
              temp = temp.replace('GATEONE=gateone', 'GATEONE=%s' % gateone_path)
              with io.open(temp_script_path, 'w', encoding='utf-8') as f:
                  f.write(temp)
          if os.path.exists(upstart_temp_path):
              with io.open(upstart_temp_path, encoding='utf-8') as f:
                  temp = f.read()
              temp = temp.replace('exec gateone', 'exec %s' % gateone_path)
              with io.open(upstart_temp_path, 'w', encoding='utf-8') as f:
                  f.write(temp)
          if os.path.exists(systemd_temp_path):
              with io.open(systemd_temp_path, encoding='utf-8') as f:
                  temp = f.read()
              temp = temp.replace(
                  'ExecStart=gateone', 'ExecStart=%s' % gateone_path)
              with io.open(systemd_temp_path, 'w', encoding='utf-8') as f:
                  f.write(temp)
          if os.path.exists(bsd_temp_script):
              with io.open(bsd_temp_script, encoding='utf-8') as f:
                  temp = f.read()
              temp = temp.replace(
                  'command=gateone', 'command=%s' % gateone_path)
              with io.open(bsd_temp_script, 'w', encoding='utf-8') as f:
                  f.write(temp)
function_tokens: def finalize_options ( self ) : install . finalize_options ( self ) if skip_init : return gateone_path = os . path . join ( self . install_scripts , 'gateone' ) if os . path . exists ( temp_script_path ) : with io . open ( temp_script_path , encoding = 'utf-8' ) as f : temp = f . read ( ) temp = temp . replace ( 'GATEONE=gateone' , 'GATEONE=%s' % gateone_path ) with io . open ( temp_script_path , 'w' , encoding = 'utf-8' ) as f : f . write ( temp ) if os . path . exists ( upstart_temp_path ) : with io . open ( upstart_temp_path , encoding = 'utf-8' ) as f : temp = f . read ( ) temp = temp . replace ( 'exec gateone' , 'exec %s' % gateone_path ) with io . open ( upstart_temp_path , 'w' , encoding = 'utf-8' ) as f : f . write ( temp ) if os . path . exists ( systemd_temp_path ) : with io . open ( systemd_temp_path , encoding = 'utf-8' ) as f : temp = f . read ( ) temp = temp . replace ( 'ExecStart=gateone' , 'ExecStart=%s' % gateone_path ) with io . open ( systemd_temp_path , 'w' , encoding = 'utf-8' ) as f : f . write ( temp ) if os . path . exists ( bsd_temp_script ) : with io . open ( bsd_temp_script , encoding = 'utf-8' ) as f : temp = f . read ( ) temp = temp . replace ( 'command=gateone' , 'command=%s' % gateone_path ) with io . open ( bsd_temp_script , 'w' , encoding = 'utf-8' ) as f : f . write ( temp )