From cce2ca99657bb6c561a14d451639fa8975e65eaa Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Wed, 3 Nov 2010 19:48:15 +0100 Subject: [PATCH] set hildon mode from env variable too --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 542e20b8..39177f70 100755 --- a/setup.py +++ b/setup.py @@ -67,9 +67,10 @@ if '--xdg' in args and '--no-xdg' in args: print '--xdg and --no-xdg options are incompatible' sys.exit(1) -if '--hildon' in args: +if '--hildon' in args or os.environ.get('HILDON') == 'true': options.hildon = True - args.remove('--hildon') + if '--hildon' in args: + args.remove('--hildon') elif '--no-hildon' in args: options.hildon = False args.remove('--no-hildon')