2013-03-21 19:27:34 -04:00
|
|
|
import hy # NOQA
|
2013-03-19 00:58:43 -04:00
|
|
|
import imp
|
|
|
|
import sys
|
|
|
|
|
2013-03-21 19:27:34 -04:00
|
|
|
# This just mocks the normalish behavior of the Python interp. Helpful to aid
|
2014-05-02 21:28:42 +05:30
|
|
|
# with shimming existing apps that don't really "work" with Hy.
|
2013-03-21 19:27:34 -04:00
|
|
|
#
|
|
|
|
# You could say this script helps Hyjack a file.
|
|
|
|
#
|
2013-03-19 00:58:43 -04:00
|
|
|
|
2013-03-28 22:42:53 -04:00
|
|
|
|
2013-03-19 00:58:43 -04:00
|
|
|
if len(sys.argv) > 1:
|
|
|
|
sys.argv.pop(0)
|
|
|
|
imp.load_source("__main__", sys.argv[0])
|
|
|
|
sys.exit(0) # right?
|