NuWro / nuwro

The main distribution of NuWro
GNU General Public License v3.0
14 stars 15 forks source link

Avoid modifying the environment variable PATH #19

Open mirguest opened 3 years ago

mirguest commented 3 years ago

Dear NuWro developers,

I am Tao Lin from IHEP, Beijing. I am working on the offline software for JUNO experiment. I found that when append the path of nuwro to $PATH, I encounter following error from nuwro:

sh: ldd: command not found

After debugging, I found the environment variable PATH is modified in dirs.cc. So I update this part, and use the c++ std::string to search the path.

Please review this PR. Thank you!

Tao Lin