openscad/openscad — pull request #61 by donbright (2012-01-09 02:57:55+00:00)
Title: prevent crash: make path absolute so that it has a parent to cwd to

the code does a 'current_path(parent(filename))', but if filename is something like this:

./openscad test.scad -o test.stl

then 'test.scad' has no parent directory, and boost throws an exception, stopping openscad like this:

terminate called after throwing an instance of 'boost::filesystem3::filesystem_error'
what(): boost::filesystem::current_path: No such file or directory
Aborted