Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: variables in tech base path #407

Closed
klayoutmatthias opened this issue Nov 13, 2019 · 1 comment
Closed

Feature request: variables in tech base path #407

klayoutmatthias opened this issue Nov 13, 2019 · 1 comment
Assignees

Comments

@klayoutmatthias
Copy link
Collaborator

For the full discussion see: https://www.klayout.de/forum/discussion/1370/homepath-in-technology-base-path#latest

klayoutmatthias added a commit that referenced this issue Nov 21, 2019
The implementation uses extrapolation of strings in the
"Expressions" framework.

There is how:
* $(tech_name) -> substituted by the technology name
* $(tech_dir) -> substituted by the directory the technology file is stored in
* $(tech_file) -> substituted by the absolute path to the tech file
* $(appdata_path) -> substituted by KLayout's home directory (e.g. ~/.klayout)
* $(env('X')) -> substituted by the environment variable $X
@klayoutmatthias klayoutmatthias self-assigned this Nov 21, 2019
@klayoutmatthias
Copy link
Collaborator Author

The solution implemented now allows using interpolated expressions inside the base-path:

  • $(tech_name) -> substituted by the technology name
  • $(tech_dir) -> substituted by the directory the technology file is stored in
  • $(tech_file) -> substituted by the absolute path to the tech file
  • $(appdata_path) -> substituted by KLayout's home directory (e.g. ~/.klayout)
  • $(env('X')) -> substituted by the environment variable $X

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant