 
     # Including files
     fs ?= require 'fs-plus'
+    path ?= require 'path'
     settings ?= require './vendor/settings'
     utilities ?= require './vendor/utilities'
 

    @openPane 'serial-monitor'

  # Set up core's WiFi
  setupWifi: (port=null) -> @loginRequired =>    
    if !port
      @choosePort 'spark-ide:setup-wifi'
    else


      if !firmware
        firmware = files[0]

      process.chdir rootPath
      firmware = path.relative rootPath, firmware

      @statusView.setStatus 'Flashing via the cloud...'

