I am trying to use the autoimport function that will load .lyt file in folders named 'tech' in the search path. I am using Windows 7.
I have tried putting a tech folder at the same level as the executable. I can import the lyt file , but I have several that I maintain and would like them to be automatically imported.
Thanks
perry
Comments
Instead of "same level as the executable" (I presume C:\Program Files\KLayout, which I thought was on the search path but maybe not), did you try putting it at C:\Users\username\KLayout\tech (which is definitely on the search path)?
I have never done it, but try concatenating your desired path to $LOAD_PATH.
Press F5, Type "$LOAD_PATH" in the console window to list whatever is currently stored in that global variable, and then concatenate your desired filepath. Type "$LOAD_PATH" again to confirm that your concatenated string is correctly concatenated.
Also check that your desired path is still there after restarting KLayout.
I can't try this right now, but let us know if it works.
David
Hi,
(@David: thanks once again for your support! ...)
You can use the "KLAYOUT_PATH" environment variant to configure the locations KLayout looks for scripts, .lyt files (inside "tech" below the KLAYOUT_PATH) etc.
I admit, the documentation is somewhat hidden: http://www.klayout.de/command_args.html.
Matthias