from pathlib import Path
from lightning.app.components import PopenPythonScript
if __name__ == "__main__":
comp = PopenPythonScript(Path(__file__).parent / "pl_script.py")
comp.run()