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
Labels

Comments

@klayoutmatthias
Copy link
Collaborator

@klayoutmatthias klayoutmatthias commented Nov 13, 2019

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

This comment has been minimized.

Copy link
Collaborator Author

@klayoutmatthias klayoutmatthias commented Nov 21, 2019

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
1 participant
You can’t perform that action at this time.