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

Commit

Permalink
Normalize fs path.
Browse files Browse the repository at this point in the history
  • Loading branch information
lexicalunit committed Feb 17, 2016
1 parent baeeeb0 commit 64bfc99
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 64bfc99

Please sign in to comment.