We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 882b347 commit a4aa55eCopy full SHA for a4aa55e
linter_install.py
@@ -1,12 +1,16 @@
1
import sublime, sublime_plugin
2
import threading
3
+import_error = False
4
try:
5
package_manager = __import__("Package Control").package_control.package_manager
6
except ImportError:
- sublime.error_message("Package Control is not installed. Install Package Control before continuing.")
7
+ import_error = True
8
9
class LinterInstallCommand(sublime_plugin.ApplicationCommand):
10
def run(self):
11
+ if import_error:
12
+ sublime.error_message("Package Control is not installed. Install Package Control before continuing.")
13
+ return
14
t = threading.Thread(target=self.installer)
15
t.start()
16
0 commit comments