Skip to content

Commit

Permalink
Fixes #102. Fix error when beautifying Python using custom autopep8 path
Browse files Browse the repository at this point in the history
Credit goes to @thedadams for creating issue
#102
with solution.
  • Loading branch information
Glavin001 committed Sep 28, 2014
1 parent 3f64cfc commit 7e828be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/langs/python-beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ getCmd = (inputPath, outputPath, options) ->
# jshint ignore: line
optionsStr = "--max-line-length " + options.max_line_length + " --indent-size " + options.indent_size + " --ignore " + options.ignore.join(",") # jshint ignore: line
if path

# Use absolute path
"python \"" + path + "\" \"" + inputPath + "\" " + optionsStr
"#{path} \"#{inputPath}\" #{optionsStr}"
else

# Use command available in $PATH
"autopep8 \"" + inputPath + "\" " + optionsStr
"use strict"
Expand Down

0 comments on commit 7e828be

Please sign in to comment.