-fs = require 'fs-plus'
-$ = require 'jquery'
-process = require 'child_process'
-hasbin = require 'hasbin'
-
 module.exports =
 class AtomIsort
   statusDialog: null

    @runIsort 'sort'

  applySubstitutions: (p) ->
    for project in atom.project.getPaths()
      [..., projectName] = project.split(path.sep)
      p = p.replace(/\$PROJECT_NAME/i, projectName)

  runIsort: (mode) ->
    if not @isPythonContext atom.workspace.getActiveTextEditor()
      return

    fs = require 'fs-plus'
    hasbin = require 'hasbin'

    isortPath = fs.normalize atom.config.get 'atom-isort.isortPath'
    isortPath = @applySubstitutions(isortPath)
