ganga-devs / ganga

Ganga is an easy-to-use frontend for job definition and management
GNU General Public License v3.0
100 stars 159 forks source link

Update to make sure that Local jobs run in fresh environment #2338

Closed egede closed 6 months ago

egede commented 6 months ago

Thanks @mesmith75 . Indeed functions were not dealt with correctly. And also while the login was run again, the environment was in fact not cleaned. Update should protect against both of these cases. A test is added as well.

mesmith75 commented 6 months ago

I think this looks good. In general though I am not a big fan of these gymnastics we do with converting environments to dicts etc. Python has an environ object which should deal with this kind of thing seamlessly, although I think it would be a considerable effort to rework everything.