     ## We want column number so that we can know where to underline.
     params.push("--show-column-numbers")
 
-    iniPath = @resolvePath(@mypyIniFile, filePath)
+    iniPath = @resolvePath @mypyIniFile, filePath
 
     if (fs.existsSync iniPath)
       # Use the provided mypy configuration file.

      options.env["MYPYPATH"] = ''
    ##Prepend user setting defined MYPYPATH to current system env MYPYPATH
    if @mypyPath?
      mypyPathResolved = @mypyPath
      [projectPath, ...] = atom.project.relativizePath(filePath)
      if projectPath
        projectName = path.parse(projectPath).base
        mypyPathResolved = mypyPathResolved.replace(/\$PROJECT_PATH/g, projectPath).replace(/\$PROJECT_NAME/g, projectName)
      options.env["MYPYPATH"] = ':' + mypyPathResolved + ':' + options.env["MYPYPATH"] + ':'
    ##Add current folder of the file being linted to MYPYPATH
    options.env["MYPYPATH"] = options.env["MYPYPATH"].replace(/:\.:/g, ':' + rootPath + ':')

          return []

  resolvePath: (targetPath, filepath) ->
    # Replace variables ($PROJECT_PATH, $PROJECT_NAME) from the targetPath string base on the filepath location.
    resolvedPath = targetPath
    if filepath
      [projectPath, ...] = atom.project.relativizePath(filepath)
      if projectPath
        projectName = path.parse(projectPath).base
        resolvedPath = resolvedPath.replace(/\$PROJECT_NAME/g, projectName)
        resolvedPath = resolvedPath.replace(/\$PROJECT_PATH/g, projectPath)
    return resolvedPath
