glato / emerge

Emerge is a browser-based interactive codebase and dependency visualization tool for many different programming languages. It supports some basic code quality and graph metrics and provides a simple and intuitive way to explore and analyze a codebase by using graph structures.
MIT License
783 stars 46 forks source link

Better if follow file soft link #8

Closed shengyang998 closed 2 years ago

shengyang998 commented 3 years ago

Use os.path.realpath to follow link. In case the link failed, use os.path.exists to check the file is exists.

https://github.com/glato/emerge/blob/ca41795bb8cacf6b240b7ea8cf1d45893e8f515a/emerge/analysis.py#L435-L436

glato commented 2 years ago

@shengyang998 sorry it was taking so long and thanks for the hint, the new version 0.18.4 should take care of such symlink issues.