It looks like you're new here. If you want to get involved, click one of these buttons!
I am trying to add user-defined python module path to .bashrc file using export KLAYOUT_PYTHONPATH=$KLAYOUT_PYTHONPATH:/u/.klayout/pymacros. However, I am unsuccessful in doing so. Any suggestion?
OS: Ubuntu 20.04.3 LTS
You need to specify the full path in KLAYOUT_PYTHONPATH and as it's not set in advance, you cannot add to it:
export KLAYOUT_PYTHONPATH=$(python3 -c "import sys; print(':'.join(sys.path))"):/your/path
Of course it's easier to add your path in your script itself: