Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Absolute paths in imports doesn't work #123

Closed
kintel opened this Issue · 0 comments

1 participant

@kintel
Owner

the import() module's file parameter doesn't accept absolute path
parameters:

From chrysn:

import(file="/tmp/plan.dxf");

WARNING: Can't open DXF file '/tmp/tmp/plan.dxf'.

it seems paths are just concatenated to $PWD instead of being
interpreted like usual.

while looking around for where to fix this, i found that the library
path configuration in parsersettings.cc is rather unflexible; what would
you think about accepting a OPENSCADPATH environment variable in the
same spirit as python's PYTHONPATH or a shell's PATH? this would allow
users to use their own libraries without either having to specify
absolute paths or having to requiring write permissions on /usr/share/.

@kintel kintel closed this in 9698d1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.