diff --git a/lib/python-isort.coffee b/lib/python-isort.coffee index 5c9cce6..2290876 100644 --- a/lib/python-isort.coffee +++ b/lib/python-isort.coffee @@ -44,7 +44,7 @@ class PythonIsort if not @checkForPythonContext() return - params = [@getFilePath(), "-c", "-vb"] + params = ["-ns", @getFilePath(), @getFilePath(), "-c", "-vb"] isortpath = atom.config.get "python-isort.isortPath" which = process.spawnSync('which', ['isort']).status @@ -65,7 +65,7 @@ class PythonIsort if not @checkForPythonContext() return - params = [@getFilePath(), "-vb"] + params = ["-ns", @getFilePath(), @getFilePath(), "-vb"] isortpath = atom.config.get "python-isort.isortPath" which = process.spawnSync('which', ['isort']).status