Because of the requirements of the autorouter we were using, our board outline needed to consist of '4 node paths' however the generated file we were given, consisted of simple lines. After searching for a while, we realized there was no existing way to do this automatically through a script and hence decided to write our own script that creates a copy of an SVG file but with '4 node paths' instead of lines.
SVG description of a line
SVG description of a path
My code to write the path descriptions with some previously obtained and calculated values that results in a copy of the input file