calibre/setup/git_post_checkout_hook.py
2013-08-05 12:54:35 +05:30

13 lines
397 B
Python
Executable File

#!/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 <kovid at kovidgoyal.net>'
import os, subprocess
base = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
subprocess.check_call(['python', 'setup.py', 'gui'], cwd=base)