Not finding .lyt files with auto import function

edited May 2015 in Layout
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

  • edited November -1

    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)?

  • edited November -1
    Thanks. That was the problem. I did not have it at C:\Users\username\KLayout\tech. Is there a way to add a different location to the path so that I can point to a common resource for multiple users?
  • edited November -1

    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

  • edited November -1

    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

Sign In or Register to comment.