From 8c24a5c59047a3842b332bb924893ad520591fde Mon Sep 17 00:00:00 2001 From: Daniel Fourie Date: Wed, 6 Jul 2016 08:46:40 +0200 Subject: [PATCH] added setting hostname in .wakatime.cfg --- wakatime/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wakatime/main.py b/wakatime/main.py index a32c040..2494fd3 100644 --- a/wakatime/main.py +++ b/wakatime/main.py @@ -185,6 +185,9 @@ def parseArguments(): return args, configs # update args from configs + if not args.hostname: + if configs.has_option('settings', 'hostname'): + args.hostname = configs.get('settings', 'hostname') if not args.key: default_key = None if configs.has_option('settings', 'api_key'):