Adding in bits for a shell.
This commit is contained in:
parent
7f4b4f8bf8
commit
42612456a5
18
bin/hython
18
bin/hython
@ -1,6 +1,22 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from hy.lang.importer import _hy_import_file
|
from hy.lang.importer import _hy_import_file
|
||||||
|
|
||||||
|
from code import InteractiveConsole
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
mod = _hy_import_file(sys.argv[1], '<stdin>')
|
if len(sys.argv) > 1:
|
||||||
|
mod = _hy_import_file(sys.argv[1], '<stdin>')
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
InteractiveConsole().interact(banner="""
|
||||||
|
"Really, if the lower orders don’t 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!""")
|
||||||
|
5
setup.py
5
setup.py
@ -24,5 +24,8 @@ setup(**{
|
|||||||
"description": 'lisp and python love eachother',
|
"description": 'lisp and python love eachother',
|
||||||
"license": "Expat",
|
"license": "Expat",
|
||||||
"url": "http://hy.pault.ag/",
|
"url": "http://hy.pault.ag/",
|
||||||
"platforms": ['any']
|
"platforms": ['any'],
|
||||||
|
"scripts": [
|
||||||
|
"bin/hython"
|
||||||
|
]
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user