glideinWMS / glideinwms

The glideinWMS Project
http://tinyurl.com/glideinwms
Apache License 2.0
16 stars 46 forks source link

Fixed add_to_path() to avoid partial path matching #379

Closed mambelli closed 10 months ago

mambelli commented 10 months ago

Fixed add_to_path() to avoid partial path matching. The function prunes from the PATH/GWMS_PATH occurrences of the path being added to avoid indefinite growth of paths with multiple occurrences of the same path. Before the fix the pruning could have been removing a partial matches, e.g. /this/path_long would have been removed when adding /this/path. Added clarification comments