Adding in a main bit for rPy evil bits
This commit is contained in:
parent
dac04cdc7b
commit
07c169eb1b
9
hy/__main__.py
Normal file
9
hy/__main__.py
Normal 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?
|
Loading…
Reference in New Issue
Block a user