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
SPICE reader: quoted include paths don't get expanded #1321
Comments
Thanks a lot for this nicely prepared report. There is no tilde expansion in the SPICE reader. That is done by the Linux shell (e.g. try Tilde expansion is not done by application code in general. For example, if you try to open such a file in Python, it will fail:
So I wonder why you're using tilde paths. Matthias |
People started using tilde paths because ngspice does expand I did not find out if that is general SPICE behavior or specific to ngspice. Indeed, not using Is there a way to intercept |
The implementation is very generic now and applies to add file paths in KLayout. |
To answer the other question: the |
Using KLayout as a spice parser for lctime we noticed some difficulties with include paths starting with "~".
This example with two minimal SPICE files demonstrates the problem:
top.sp
:$HOME/include.sp
: (empty file)Minimal code for triggering the problem:
Yields:
However, ngspice seems to be able to handle such include paths.
ngspice top.sp
runs without error.It looks like include paths in quotes are not expanded (the
~
should expand to the home directory) but instead treated as relative paths.The text was updated successfully, but these errors were encountered: