From 20d7d2c5372cebd61f3251328080bfce81a2819e Mon Sep 17 00:00:00 2001 From: Kareem Farid Date: Thu, 4 Jul 2024 16:39:33 +0300 Subject: [PATCH] Workaround for Click not being included in KLayout's Python (#2136) Signed-off-by: Kareem Farid --- gui.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gui.py b/gui.py index 26fdaee8d..bc9fde256 100755 --- a/gui.py +++ b/gui.py @@ -109,6 +109,14 @@ def gui(viewer, format, run_dir, stage): layout, ] ) + pythonpath = subprocess.check_output( + [ + "python3", + "-c", + "import click; import os; print(os.path.dirname(click.__path__[0])); print(1)", + ] + ).decode() + run_env["PYTHONPATH"] = pythonpath subprocess.check_call( [ "klayout",