text: 
  /* eslint-disable no-console */
  
  import { ipcMain, app } from 'electron';
  import { main as appiumServer } from 'appium';
  import { getDefaultArgs } from 'appium/build/lib/parser';
  import path from 'path';
  import wd from 'wd';
  import { fs, tempDir } from 'appium-support';
  import _ from 'lodash';
  import {createSession, killSession, getSessionHandler} from './appium-method-handler';
  import request from 'request-promise';
  import { openBrowserWindow} from './helper';
  import appiumConnect from './appium_connect/appium-connect';
  import spawn from './spawn/spawn';
  import folderReader from './testFolderReader/testFolderReader';
  
  const LOG_SEND_INTERVAL_MS = 250;
  
  const defaultEnvironmentVariables = _.clone(process.env);
  
  let server = null;
  let logWatcher = null;
  let batchedLogs = [];
  
  let logFile;
  
  
  
  function initializer(win){
  	connectStartServer(win);
  }
  
  export function connectFolderReader(win, path){
    folderReader(win, path);
  }
  
  export function connectStartScripts(path){  
    let scripts = new spawn({path: path.path + 'example.py', args: ''})
    let script_list = scripts.get_scripts
    Promise.all(script_list).then(val => console.log(val))
  }
  
  export function createNewSessionWindow(win){
  	let sessionWin = openBrowserWindow('startSessions', {
  		title: 'Start Session',
  		titleBarStyle: 'hidden',  
  	});
  
  }
  
  export function connectAppiumConnect(win){
     appiumConnect(win)
  }
  
  export async function connectStartSession(win){
    ipcMain.on('start-session', async (event, args) => {
      const {desiredCapabilities, host, path, port} = args[0]
      console.log(args)
      console.log('----------')
      console.log(desiredCapabilities)
      console.log('--------')
      console.log(args[0]['desiredCapabilities'])
      console.log('--------------')
      console.log(args[0].desiredCapabilities)
      console.log('----------')
      console.log(args[0])
      console.log(typeof(args))
      console.log('helpless')
      const driver = wd.promiseChainRemote("http://localhost:4723/wd/hub");
      driver.init(args[0].desiredCapabilities)
  
      console.log('it worked')
    })
  }
  
  export function InitializeListeners(win){
    connectStartScripts(win);
    connectStartSession(win);
    connectAppiumConnect(win);
  
  }