gavanderhoorn / ktransw_py

A wrapper around Fanuc Robotics' ktrans that makes it work a little more like a modern compiler
Apache License 2.0
18 stars 8 forks source link

Empty include directories make ktransw crash (Error 3: cannot find the path specified) #4

Closed gavanderhoorn closed 8 years ago

gavanderhoorn commented 8 years ago

As per subject.

Observed on a Windows XP system: the prog_x package in the rossum_example_ws has an includes entry in its manifest, which exports the prog_x/include directory (here). That directory is empty (ie: prog_x doesn't actually have any includes).

This causes ktransw to crash while setting up the temporary build directory.

gavanderhoorn commented 8 years ago

Empty directories do not appear to be an issue on Windows 7.

gavanderhoorn commented 8 years ago

Had nothing to do with Windows XP / Windows 7: the manifest of prog_x exports the prog_x/include directory, but as that directory is empty, it doesn't actually exist in the git repository. This caused os.listdir(..) to fail, resulting in the observed error.

The change in a8e24a3 makes ktransw ignore any non-existing include paths, avoiding the crash.