fix deprecation call: atom.project.getPath

This commit is contained in:
Rom Grk 2015-05-29 15:44:36 -04:00
parent 6d723b8a4a
commit 69005eb880

View file

@ -39,7 +39,7 @@ saveAs = (filePath) ->
getFullPath = (filePath) -> getFullPath = (filePath) ->
filePath = fs.normalize filePath filePath = fs.normalize filePath
return filePath if path.isAbsolute(filePath) return filePath if path.isAbsolute(filePath)
return path.join(atom.project.getPath(), filePath) return path.join(atom.project.getPaths()[0], filePath)
replaceGroups = (groups, replString) -> replaceGroups = (groups, replString) ->
arr = replString.split('') arr = replString.split('')