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

Already on GitHub? Sign in to your account

Absolute paths in imports doesn't work #123

kintel opened this Issue Jun 4, 2012 · 0 comments


None yet
1 participant

kintel commented Jun 4, 2012

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

From chrysn:


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 added a commit that referenced this issue Jun 4, 2012

@kintel kintel Added test cases for issue #123 38cb06c

@kintel kintel closed this in 9698d1d Jun 4, 2012

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