File size: 327 Bytes
2a2578f
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from src.database.models import engine
import os

out = "engine_check.txt"
with open(out, 'w') as f:
    f.write(f"Engine URL: {engine.url}\n")
    f.write(f"Absolute Path of Engine URL: {os.path.abspath(str(engine.url).replace('sqlite:///', ''))}\n")
    f.write(f"CWD: {os.getcwd()}\n")

print(f"Results in {out}")