Skip to content

Commit cf8d0c6

Browse files
committed
get tidy5 binary always
Check path of tidy5 binary with Linter classmethod `which`: http://www.sublimelinter.com/en/latest/linter_methods.html?highlight=executable_path#which Fixes #31
1 parent 3db0b39 commit cf8d0c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

linter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@
1111
"""This module exports the HtmlTidy plugin class."""
1212

1313
from SublimeLinter.lint import Linter, util
14-
import shutil
1514

1615

1716
class HtmlTidy(Linter):
1817

1918
"""Provides an interface to tidy."""
2019

2120
syntax = 'html'
22-
if shutil.which('tidy5'):
21+
if Linter.which('tidy5'):
2322
cmd = 'tidy5 -errors -quiet -utf8'
2423
else:
2524
cmd = 'tidy -errors -quiet -utf8'

0 commit comments

Comments
 (0)