diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2013-01-10 18:56:28 -0800 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2014-02-22 10:30:15 -0800 |
commit | 24c53524bfb97dc0e7d7a37b5bc752cc132210c2 (patch) | |
tree | 4e2a7b18196cf5d6193977942f6ddabc12730b7a /bin | |
parent | Update AUTHORS to review credit and split the list of people in original auth... (diff) | |
download | catalyst-24c53524bfb97dc0e7d7a37b5bc752cc132210c2.tar.gz catalyst-24c53524bfb97dc0e7d7a37b5bc752cc132210c2.tar.bz2 catalyst-24c53524bfb97dc0e7d7a37b5bc752cc132210c2.zip |
Initial rearrangement of the python directories
New minimal start script, moving the original catalyst script to catalyst/main.py.
Add __init__.py's to modules and arch sub-pkgs.
skip __init__.py when loading the modules.
Update the module loading paths for the new locations.
Fix catalyst_support import to new location and specify imported modules.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/catalyst | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/bin/catalyst b/bin/catalyst new file mode 100755 index 00000000..ace43fc7 --- /dev/null +++ b/bin/catalyst @@ -0,0 +1,46 @@ +#!/usr/bin/python2 -OO + +# Maintained in full by: +# Catalyst Team <catalyst@gentoo.org> +# Release Engineering Team <releng@gentoo.org> +# Andrew Gaffney <agaffney@gentoo.org> +# Chris Gianelloni <wolf31o2@wolf31o2.org> +# $Id$ + + +from __future__ import print_function + +import sys + +__maintainer__="Catalyst <catalyst@gentoo.org>" +__version__="2.0.12.2" + + +# This block ensures that ^C interrupts are handled quietly. +try: + import signal + + def exithandler(signum,frame): + signal.signal(signal.SIGINT, signal.SIG_IGN) + signal.signal(signal.SIGTERM, signal.SIG_IGN) + print() + sys.exit(1) + + signal.signal(signal.SIGINT, exithandler) + signal.signal(signal.SIGTERM, exithandler) + signal.signal(signal.SIGPIPE, signal.SIG_DFL) + +except KeyboardInterrupt: + print() + sys.exit(1) + + +from catalyst.main import main + +try: + main() +except KeyboardInterrupt: + print("Aborted.") + sys.exit(130) +sys.exit(0) + |