Hi all,
Good point Brian. If you need to keep getenv=True but want to override only PYTHONPATH, you could use the "env" option.
>From the
docs:
If the environment is set with the environment command
and getenv is
also set to true, values specified with environment override
values in the submitter’s environment (regardless of the order of the environment and getenv commands).
Cheers
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Bockelman, Brian <BBockelman@xxxxxxxxxxxxx>
Sent: Wednesday, March 4, 2020 7:04 PM To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx> Subject: Re: [HTCondor-users] enviroment unset variable [CAUTION]This email originated outside Warner Bros.
Hi Mihai, I'm not very familiar with the ARC-CE integration, but since no one else seems to have an immediate suggestion... There's an option in HTCondor submit files called "getenv"; if set to "true" (the default is "false"), then it will make a copy of all the submit-side environment variables as you observe below. Is it possible this option is being set inside the ARC-CE scripts? Brian > On Mar 3, 2020, at 7:37 AM, Mihai Ciubancan <ciubancan@xxxxxxxx> wrote: > > > Dear all, > > I have configured an ARC-CE with HTCondor for LHC experiments. > The peoples from Alice experiment are complaining that by default they get > $PYTHONPATH local variable instead of the one needed by their jobs (from > cvmfs). I had a look into and I see that each jobs inherit some > environments variable form ARC-CE machine(with acts also as the schedd for > condor): > PYTHONPATH=/usr/lib64/python2.7/site-packages > > Environment = "PATH=/sbin:/usr/sbin:/bin:/usr/bin > LD_LIBRARY_PATH=/usr/lib64:/usr/lib6464 > PYTHONPATH=/usr/lib64/python2.7/site-packages LANG=en_US.UTF-8 > ARC_LOCATION=/usr..... > > How can I stop from being export PYTHONPATH variable through htcondor? > > Thank you in advance, > Mihai > > > > _______________________________________________ > HTCondor-users mailing list > To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a > subject: Unsubscribe > You can also unsubscribe by visiting > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_mailman_listinfo_htcondor-2Dusers&d=DwICAg&c=-SicqtCl7ffNuxX6bdsSog&r=eBjp936Vb2boZG2K4kPxj0PzXcExb200e1yyiRiuXkgF9PjIrBjeXWdRtFeVGNJs&m=2fOqi43RxJgM28XUqYbCZgrwsiT9HIkxkwCYOmGMwdg&s=p3vEFYA60a3on9D9gzijcxm5eYBNNyo_6e9qt0jpiQQ&e= > > The archives can be found at: > https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_archive_htcondor-2Dusers_&d=DwICAg&c=-SicqtCl7ffNuxX6bdsSog&r=eBjp936Vb2boZG2K4kPxj0PzXcExb200e1yyiRiuXkgF9PjIrBjeXWdRtFeVGNJs&m=2fOqi43RxJgM28XUqYbCZgrwsiT9HIkxkwCYOmGMwdg&s=abn5rtbSujKXUvFDCSPwr5YqD-1y84rQuGFXatEEujA&e= _______________________________________________ HTCondor-users mailing list To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a subject: Unsubscribe You can also unsubscribe by visiting https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_mailman_listinfo_htcondor-2Dusers&d=DwICAg&c=-SicqtCl7ffNuxX6bdsSog&r=eBjp936Vb2boZG2K4kPxj0PzXcExb200e1yyiRiuXkgF9PjIrBjeXWdRtFeVGNJs&m=2fOqi43RxJgM28XUqYbCZgrwsiT9HIkxkwCYOmGMwdg&s=p3vEFYA60a3on9D9gzijcxm5eYBNNyo_6e9qt0jpiQQ&e= The archives can be found at: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_archive_htcondor-2Dusers_&d=DwICAg&c=-SicqtCl7ffNuxX6bdsSog&r=eBjp936Vb2boZG2K4kPxj0PzXcExb200e1yyiRiuXkgF9PjIrBjeXWdRtFeVGNJs&m=2fOqi43RxJgM28XUqYbCZgrwsiT9HIkxkwCYOmGMwdg&s=abn5rtbSujKXUvFDCSPwr5YqD-1y84rQuGFXatEEujA&e= |