b89356b3e7
Importing wakatime package directly without need for subprocess. Using threading to prevent blocking Sublime Text.
21 lines
462 B
Python
21 lines
462 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
wakatime-cli
|
|
~~~~~~~~~~~~
|
|
|
|
Action event appender for Wakati.Me, auto time tracking for text editors.
|
|
|
|
:copyright: (c) 2013 Alan Hamlett.
|
|
:license: BSD, see LICENSE for more details.
|
|
"""
|
|
|
|
from __future__ import print_function
|
|
|
|
import os
|
|
import sys
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
import wakatime
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(wakatime.main(sys.argv))
|