import wakatime package outside try block
This commit is contained in:
parent
fce10cea07
commit
bf6a6f7310
1 changed files with 3 additions and 3 deletions
|
@ -36,14 +36,14 @@ LOCK = threading.RLock()
|
||||||
try:
|
try:
|
||||||
import ssl
|
import ssl
|
||||||
HAS_SSL = True
|
HAS_SSL = True
|
||||||
|
except ImportError:
|
||||||
|
from subprocess import Popen
|
||||||
|
|
||||||
|
if HAS_SSL:
|
||||||
# import wakatime package
|
# import wakatime package
|
||||||
sys.path.insert(0, join(PLUGIN_DIR, 'packages', 'wakatime'))
|
sys.path.insert(0, join(PLUGIN_DIR, 'packages', 'wakatime'))
|
||||||
import wakatime
|
import wakatime
|
||||||
|
|
||||||
except ImportError:
|
|
||||||
from subprocess import Popen
|
|
||||||
|
|
||||||
|
|
||||||
def setup_settings_file():
|
def setup_settings_file():
|
||||||
""" Convert ~/.wakatime.conf to WakaTime.sublime-settings
|
""" Convert ~/.wakatime.conf to WakaTime.sublime-settings
|
||||||
|
|
Loading…
Reference in a new issue