rules_zapp/example/hello.py

19 lines
299 B
Python
Raw Normal View History

2021-08-09 15:26:06 +00:00
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()