Pantograph/examples/aesop.py

15 lines
357 B
Python
Raw Normal View History

2024-05-17 20:45:29 -07:00
#!/usr/bin/env python3
import subprocess
from pathlib import Path
from pantograph.server import Server
def get_lean_path():
cwd = Path(__file__).parent.resolve() / 'Example'
p = subprocess.check_output(['lake', 'env', 'printenv', 'LEAN_PATH'], cwd=cwd)
return p
if __name__ == '__main__':
lean_path = get_lean_path()
print(lean_path)