Просмотр исходного кода

Linter shouldn't depend on `sentry` being installed

Matt Robenolt 9 лет назад
Родитель
Сommit
75905bc53a
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      bin/lint

+ 3 - 0
bin/lint

@@ -1,8 +1,11 @@
 #!/usr/bin/env python
 from __future__ import absolute_import
 
+import os
 import sys
 
+sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, 'src'))
+
 from sentry.lint.engine import check_files
 
 offset = 1