2021-08-09 15:26:06 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
for e in sys.path:
|
|
|
|
print(" -", e)
|
|
|
|
|
2021-08-30 00:44:43 +00:00
|
|
|
print(f"hello, world! This is {__file__}")
|
2021-08-09 15:26:06 +00:00
|
|
|
|
|
|
|
try:
|
|
|
|
import yaml
|
2021-08-29 21:07:56 +00:00
|
|
|
|
2021-08-09 15:26:06 +00:00
|
|
|
print("I have YAML! and nothing to do with it.", yaml.__file__)
|
|
|
|
except ImportError:
|
|
|
|
print("Don't have YAML.")
|
|
|
|
|
2021-08-30 00:44:43 +00:00
|
|
|
exit(0)
|
|
|
|
|
2021-08-09 15:26:06 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|