Skip to content

Commit 1186ebc

Browse files
author
Aedx
committed
Merge pull request #32 from therealmarv/fix-cmd-path-issues-osx
Ensure that tidy5 is always found on Mac OS X, not depending on launch method
2 parents 3db0b39 + cf8d0c6 commit 1186ebc

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)