source/projects/zapp/example/hello.py
Reid D McKenzie a6d15bfc83
Initial zapp state (#1)
This commit implements zapp! and rules_zapp, as a proof of concept of
lighter-weight easily hacked on self-extracting zipapps. Think Pex or
Shiv but with less behavior and more user control. Or at least
hackability.
2021-08-08 00:16:37 -06:00

18 lines
299 B
Python

import sys
def main():
for e in sys.path:
print(" -", e)
print("hello, world!")
try:
import yaml
print("I have YAML! and nothing to do with it.", yaml.__file__)
except ImportError:
print("Don't have YAML.")
if __name__ == "__main__":
main()