  class ProcessWrapper():
      """ Builds command, launches and terminates the underlying
          faceswap process. Updates GUI display depending on state """
  
      def __init__(self, pathscript=None):
          logger.debug("Initializing %s: (pathscript: %s)", self.__class__.__name__, pathscript)
          self.tk_vars = get_config().tk_vars
          self.set_callbacks()
          self.pathscript = pathscript
          self.command = None
          self.statusbar = get_config().statusbar
 
</s> remove         self.pathscript = pathscript
 </s> add         self.pathscript = os.path.realpath(os.path.dirname(sys.argv[0])) </s> remove         cmd = sys.argv[0]
        pathscript = os.path.realpath(os.path.dirname(cmd))
        self.args = arguments
        self.root = FaceswapGui(pathscript)
 </s> add         set_system_verbosity(arguments.loglevel)
        self.root = FaceswapGui(arguments.debug) </s> remove     def __init__(self, handletype, filetype, command=None, action=None,
                 variable=None):
        logger.debug("Initializing %s: (Handletype: '%s', filetype: '%s', command: '%s', action: "
                     "'%s', variable: %s)", self.__class__.__name__, handletype, filetype, command,
 </s> add     def __init__(self, handletype, filetype, title=None, initialdir=None, command=None,
                 action=None, variable=None):
        logger.debug("Initializing %s: (Handletype: '%s', filetype: '%s', title: '%s', "
                     "initialdir: '%s, 'command: '%s', action: '%s', variable: %s)",
                     self.__class__.__name__, handletype, filetype, title, initialdir, command, </s> remove     def __init__(self, root, cli_opts, scaling_factor, pathcache, statusbar, session):
        logger.debug("Initializing %s: (root %s, cli_opts: %s, scaling_factor: %s, pathcache: %s, "
                     "statusbar: %s, session: %s)", self.__class__.__name__, root, cli_opts,
                     scaling_factor, pathcache, statusbar, session)
        self.root = root
        self.cli_opts = cli_opts
        self.scaling_factor = scaling_factor
        self.pathcache = pathcache
        self.statusbar = statusbar
        self.serializer = get_serializer("json")
        self.tk_vars = self.set_tk_vars()
        self.user_config = UserConfig(None)
        self.user_config_dict = self.user_config.config_dict
        self.command_notebook = None  # set in command.py
        self.session = session
        logger.debug("Initialized %s", self.__class__.__name__)
 </s> add     @property
    def _command_tabs(self):
        """ dict: Command tab titles with their IDs. """
        return self.command_notebook.tab_names

    @property
    def _tools_tabs(self):
        """ dict: Tools command tab titles with their IDs. """
        return self.command_notebook.tools_tab_names

    # Config
    @property
    def user_config(self):
        """ dict: The GUI config in dict form. """
        return self._user_config

    @property
    def user_config_dict(self):
        """ dict: The GUI config in dict form. """
        return self._user_config.config_dict </s> remove     def __init__(self, tk_var, control_frame, sysbrowser_dict):
 </s> add     def __init__(self, opt_name, tk_var, control_frame, sysbrowser_dict):
    def __init__(self):
        logger.debug("Initializing %s", self.__class__.__name__)
  class ProcessWrapper():
      """ Builds command, launches and terminates the underlying
          faceswap process. Updates GUI display depending on state """
  
    def __init__(self):
        logger.debug("Initializing %s", self.__class__.__name__)
    def __init__(self):
        logger.debug("Initializing %s", self.__class__.__name__)
          self.tk_vars = get_config().tk_vars
          self.set_callbacks()
          self.pathscript = pathscript
          self.command = None
          self.statusbar = get_config().statusbar
keep keep keep keep replace replace keep keep keep keep keep
 GUI Updates (#940)

* lib.gui: Update icons
* tools.cli: Add video filetype flag to mask input
* lib.gui.popup_configure: Refresh GUI on config save
* lib.gui._config: Add Icon size and load last session options
* lib.gui.control_helper - Add control modification tracking
* lib.gui - Add Projects and Last Session
- Main root title handled by projects
- Add Hotkeys
- Create projects module
- split fsw and fst filetypes
- Add last_session saving

* lib.project
- Documentation
- Ask confirm on closing unsaved project
-Fixups

* Track model folder changes
- Shuffle some globals
- Activate System Verbosity for GUI

* lib.gui.utils - Documentation and clean up
- lib.gui.custom_widgets - Create and document

* Add GUI config option to disable auto loading model stats 
lib/gui/wrapper.py