ros-infrastructure / rosdoc_lite

A light-weight version of rosdoc that does not rely on ROS infrastructure for crawling packages.
10 stars 31 forks source link

Confused by symbolic links #4

Closed stephanemagnenat closed 11 years ago

stephanemagnenat commented 11 years ago

Running rosdoc_lite on a nfs mount confuses it:

smagnenat@bvy:~/build/groovy/ethzasl_aseba/aseba$ rosdoc_lite .
The path passed in does not match that returned by rospack. Requested path: /wg/stor5/smagnenat/build/groovy/ethzasl_aseba/aseba.
Rospack path: /u/smagnenat/build/groovy/ethzasl_aseba/aseba.

I think that the reason is that /u/smagnenat is a symlink to /wg/stor5/smagnenat. The same command works if ethzasl_aseba is in a local folder for which there are not symbolic links.

eitanme commented 11 years ago

Ah yes, symlinks. I just switched everything from os.path.abspath to os.path.realpath which should resolve the issue. It will go out in the next release of rosdoc_lite. Thanks very much for bringing the bug to my attention.

Groovy: 8cc92dcf7bbac04d9903bfc7fba71065d329cbb5 Fuerte: 679c62b404ccae47514e4c764a2950b543d8bfe8