          ''' Load a saved config file '''
          config_file = filedialog.askopenfile(mode='r', filetypes=self.filetypes)
          if not config_file:
              return
          config = self.serializer.unmarshal(config_file.read())
          if command is None:
              for command, options in config.items():
                  self.set_command_args(command, options)
          else:
              options = config[command]
 
</s> remove         config_file = filedialog.askopenfile(mode='r', filetypes=self.filetypes)
        if not config_file:
 </s> add         cfgfile = filedialog.askopenfile(mode='r', filetypes=self.filetypes)
        if not cfgfile: </s> remove             for command, options in config.items():
                self.set_command_args(command, options)
 </s> add             for cmd, opts in cfg.items():
                self.set_command_args(cmd, opts) </s> remove             options = config[command]
            self.set_command_args(command, options)
 </s> add             opts = cfg[command]
            self.set_command_args(command, opts) </s> remove         self.root.config(menu=menubar)
 </s> add         self.gui.config(menu=menubar) </s> remove         config_file = filedialog.asksaveasfile(mode='w', filetypes=self.filetypes, defaultextension='.fsw')
        if not config_file:
 </s> add         cfgfile = filedialog.asksaveasfile( mode='w',
                                            filetypes=self.filetypes, 
                                            defaultextension='.fsw')
        if not cfgfile:
        cfg = self.serializer.unmarshal(cfgfile.read())
          ''' Load a saved config file '''
          config_file = filedialog.askopenfile(mode='r', filetypes=self.filetypes)
          if not config_file:
              return
        cfg = self.serializer.unmarshal(cfgfile.read())
          if command is None:
              for command, options in config.items():
                  self.set_command_args(command, options)
          else:
              options = config[command]
keep keep keep keep replace keep keep keep keep keep
 GUI v0.1.0a (#336)

* Code clean up

* Code refactor

* bugfix: Find paths to icons when launched from outside faceswap dir

* Bugfix: Disable GUI if TkInter app not available

* BugFix: Disable GUI if $DISPLAY not detected

* Minor code ammends

* Code Refactor

* DISPLAY check fix 
scripts/gui.py