Open
Description
I'm writing this ticket in response to this How to load Hy package in zipapp? stackoverflow question.
I have tried reproducing this on the latest master a38cdb7 using the files in this gist
It works fine when not using zipapp:
$ python3 hyz
hello hy
But after zipping:
$ python3 -m zipapp hyz
$ python3 hyz.pyz
Traceback (most recent call last):
File "/home/lex/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/lex/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "hyz.pyz/__main__.py", line 2, in <module>
ModuleNotFoundError: No module named 'hyz'