Skip to content

Commit

Permalink
Workaround for Click not being included in KLayout's Python (#2136)
Browse files Browse the repository at this point in the history
Signed-off-by: Kareem Farid <[email protected]>
  • Loading branch information
kareefardi authored Jul 4, 2024
1 parent a0e805e commit 20d7d2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 20d7d2c

Please sign in to comment.