From 6c630b280ffe86c0ac2928ed8b2c0de683d6d428 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 5 Aug 2013 12:54:35 +0530 Subject: [PATCH] Auto-run .ui file compilation on branch change --- setup/git_post_checkout_hook.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 setup/git_post_checkout_hook.py diff --git a/setup/git_post_checkout_hook.py b/setup/git_post_checkout_hook.py new file mode 100755 index 0000000000..f2e47cf582 --- /dev/null +++ b/setup/git_post_checkout_hook.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 +from __future__ import (unicode_literals, division, absolute_import, + print_function) + +__license__ = 'GPL v3' +__copyright__ = '2013, Kovid Goyal ' + +import os, subprocess +base = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) +subprocess.check_call(['python', 'setup.py', 'gui'], cwd=base) +