 
 out = null
 inp  = null
+projectPaths = null;
 
-exports.init = (projectPaths) ->
+exports.init = (pP) ->
+  projectPaths = pP;
   p = path.join(__dirname, autocomplete)
   array = projectPaths
   stderr = (e) -> console.log("Err: #{e}")

    cb({one, multi: multi.split(";").filter((a) -> a.trim())})

exports.loadFile =          (path,   cb = (->)) ->
  unless /.ex$/.test(path)
    cb()
    return

  # ac.stdout.setMaxListeners(2)

exports.getAutocompletion = (prefix, cb) ->
  unless inp then exports.init(projectPaths)
  if prefix.trim().length < 1
    cb()
    return
