# Path: modules/monitors.py
# def get_monitors():
# 
# Path: modules/paths.py
# def get_image_path(lib, game_name, *args):
# def get_setup_script_path(lib, game_name):


import sys, os, subprocess, re
import gi
import gettext
    import sys
from gi.repository import Gtk, Gdk, GdkPixbuf
    from ConfigParser import ConfigParser as ConfigParser
    from configparser import ConfigParser as ConfigParser
from modules import monitors, paths

        config_parser.set('Settings', 'launcher_type', str(self.launcher_type))
        config_parser.set('Settings', 'monitor', str(self.monitor))
        config_parser.set('Settings', 'launcher', str(self.launcher))
        config_parser.set('Settings', 'show_banner', str(self.show_banner))
        config_parser.set('Settings', 'command_before', str(self.command_before))
        config_parser.set('Settings', 'command_after', str(self.command_after))

        new_config_file = open(config_file, 'w')
        config_parser.write(new_config_file)
        new_config_file.close()

    def get_banner(self):

        goglib_image_path = paths.get_image_path('goglib', self.game_name, 'normal', 'check')
        mylib_image_path = paths.get_image_path('mylib', self.game_name, 'check')

        if os.path.exists(goglib_image_path) and \
                os.path.exists(goglib_install_dir + '/' + self.game_name):
            self.banner_path = goglib_image_path
        else:
            self.banner_path = mylib_image_path

    def quit_app(self, window, event):
        self.config_save()
        Gtk.main_quit()

    def create_main_window(self):

        self.get_banner()

# Path: modules/monitors.py
# def get_monitors():
# 
# Path: modules/paths.py
# def get_image_path(lib, game_name, *args):
# def get_setup_script_path(lib, game_name):


# Path: launcher_native.py
import sys, os, subprocess, re
import gi
import gettext
    import sys
from gi.repository import Gtk, Gdk, GdkPixbuf
    from ConfigParser import ConfigParser as ConfigParser
    from configparser import ConfigParser as ConfigParser
from modules import monitors, paths


        config_parser.set('Settings', 'launcher_type', str(self.launcher_type))
        config_parser.set('Settings', 'monitor', str(self.monitor))
        config_parser.set('Settings', 'launcher', str(self.launcher))
        config_parser.set('Settings', 'show_banner', str(self.show_banner))
        config_parser.set('Settings', 'command_before', str(self.command_before))
        config_parser.set('Settings', 'command_after', str(self.command_after))

        new_config_file = open(config_file, 'w')
        config_parser.write(new_config_file)
        new_config_file.close()

    def get_banner(self):

        goglib_image_path = paths.get_image_path('goglib', self.game_name, 'normal', 'check')
        mylib_image_path = paths.get_image_path('mylib', self.game_name, 'check')

        if os.path.exists(goglib_image_path) and \
                os.path.exists(goglib_install_dir + '/' + self.game_name):
            self.banner_path = goglib_image_path
        else:
            self.banner_path = mylib_image_path

    def quit_app(self, window, event):
        self.config_save()
        Gtk.main_quit()

    def create_main_window(self):

        self.get_banner()

        self.monitors_list, self.monitor_primary = monitors.get_monitors()