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

[OpenSCAD compat] Include relative paths are evaluated differently #276

Open
depau opened this issue Aug 18, 2020 · 2 comments
Open

[OpenSCAD compat] Include relative paths are evaluated differently #276

depau opened this issue Aug 18, 2020 · 2 comments
Assignees

Comments

@depau
Copy link

depau commented Aug 18, 2020

Hi,

I was trying to rebuild this project (not the best code, I admit) with extopenscad with --fopenscad-compat and I noticed that relative imports are evaluated differently.

Specifically, OpenSCAD evaluates relative paths starting from the location of the SCAD file.

To reproduce: https://github.com/Depau/aegis-mini-skin; run make SCAD='./path/to/extopenscad -O':

$ make SCADC='/usr/bin/extopenscad -O'
/usr/bin/extopenscad -O -o stl/stubs/decoration_side.stl stubs/decoration_side.scad
Loading File.
Processing File.
extopenscad: /tmp/aegis-mini-skin/../config.scad: openFile: does not exist (No such file or directory)

⇒ OpenSCAD would load config.scad from /tmp/aegis-mini-skin/stubs/../config.scad


Side note: someone made an Arch Linux AUR package for ImplicitCAD, if you wanna mention it in the website :) https://aur.archlinux.org/packages/implicitcad/

@julialongtin
Copy link
Member

I believe it's fair to call this broken. :)

@lepsa
Copy link
Contributor

lepsa commented Apr 18, 2024

I've made a fix for this that should resolve the issue.

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

3 participants