Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #27 from lexicalunit/normalize_path
Browse files Browse the repository at this point in the history
Normalize path
  • Loading branch information
bh authored Oct 19, 2016
2 parents 7c477c6 + 64bfc99 commit 3015bf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/python-isort.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fs = require 'fs'
fs = require 'fs-plus'
$ = require 'jquery'
process = require 'child_process'

Expand Down Expand Up @@ -45,7 +45,7 @@ class PythonIsort
return

params = ["-ns", @getFilePath(), @getFilePath(), "-c", "-vb"]
isortpath = atom.config.get "python-isort.isortPath"
isortpath = fs.normalize(atom.config.get "python-isort.isortPath")

which = process.spawnSync('which', ['isort']).status
if which == 1 and not fs.existsSync(isortpath)
Expand All @@ -66,7 +66,7 @@ class PythonIsort
return

params = ["-ns", @getFilePath(), @getFilePath(), "-vb"]
isortpath = atom.config.get "python-isort.isortPath"
isortpath = fs.normalize(atom.config.get "python-isort.isortPath")

which = process.spawnSync('which', ['isort']).status
if which == 1 and not fs.existsSync(isortpath)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"atom": ">=0.185.0 <2.0.0"
},
"dependencies": {
"fs-plus": "^2.8.1",
"jquery": "^2.1.4"
}
}

0 comments on commit 3015bf4

Please sign in to comment.