make passing arguments to execute function optional, using sys.argv instead

This commit is contained in:
Alan Hamlett 2015-09-06 17:18:15 -07:00
parent 736d80c9de
commit 3bd40b013e

View file

@ -393,8 +393,9 @@ def send_heartbeat(project=None, branch=None, hostname=None, stats={}, key=None,
return False
def execute(argv):
sys.argv = ['wakatime'] + argv
def execute(argv=None):
if argv:
sys.argv = ['wakatime'] + argv
args, configs = parseArguments()
if configs is None: