Adding in a main bit for rPy evil bits

This commit is contained in:
Paul R. Tagliamonte 2013-03-19 00:58:43 -04:00
parent dac04cdc7b
commit 07c169eb1b

9
hy/__main__.py Normal file
View File

@ -0,0 +1,9 @@
import hy
import imp
import sys
if len(sys.argv) > 1:
sys.argv.pop(0)
imp.load_source("__main__", sys.argv[0])
sys.exit(0) # right?