hy/bin/hython
Paul Tagliamonte bfb3ce8138 fiddle bits
2012-12-18 23:44:44 -05:00

24 lines
567 B
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from hy.lang.importer import _hy_import_file
from code import InteractiveConsole
import sys
if len(sys.argv) > 1:
sys.argv = sys.argv[1:]
mod = _hy_import_file(sys.argv[0], '__main__')
sys.exit(0)
InteractiveConsole().interact(banner="""
"Really, if the lower orders dont set us a good example, what on
earth is the use of them?"
-- Oscar Wilde (The Importance of Being Earnest)
The hython bits have been loaded -- magically, .hy
files are importable!""")