Ericsson / CodeCompass

CodeCompass is a software comprehension tool for large scale software written in C/C++ and Java
https://codecompass.net
GNU General Public License v3.0
517 stars 101 forks source link

Finding CodeCompass binary path #579

Closed intjftw closed 1 year ago

intjftw commented 2 years ago

Multiple plugins need to know the absolute path of the CodeCompass binary that is being run, in places where they don't reach argv[0].

bruntib commented 2 years ago

What do plugins need this information for?

intjftw commented 2 years ago

What do plugins need this information for?

It's usually that the plugin needs to run another binary on a relative path to the CC binary (e.g. the competence plugin wants to run JPlag, Java and C# plugins need to run their own parser components in their respective languages), and this can't be done if the CC binary is not run from the install directory.