Reid D McKenzie
a6d15bfc83
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.
18 lines
299 B
Python
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()
|