mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
import wakatime package outside try block
This commit is contained in:
parent
fce10cea07
commit
bf6a6f7310
@ -36,14 +36,14 @@ LOCK = threading.RLock()
|
||||
try:
|
||||
import ssl
|
||||
HAS_SSL = True
|
||||
except ImportError:
|
||||
from subprocess import Popen
|
||||
|
||||
if HAS_SSL:
|
||||
# import wakatime package
|
||||
sys.path.insert(0, join(PLUGIN_DIR, 'packages', 'wakatime'))
|
||||
import wakatime
|
||||
|
||||
except ImportError:
|
||||
from subprocess import Popen
|
||||
|
||||
|
||||
def setup_settings_file():
|
||||
""" Convert ~/.wakatime.conf to WakaTime.sublime-settings
|
||||
|
Loading…
Reference in New Issue
Block a user