[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] interpolation using the python bindings



Hi Jose,

I think you have to wrap the expressions in an ExprTree class.  See https://htcondor-python.readthedocs.io/en/latest/classad.html#classad.ExprTree

Thanks,

--
Anthony Tiradani

ï-----Original Message-----
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Jose Caballero <jcaballero.hep@xxxxxxxxx>
Reply-To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Date: Wednesday, September 5, 2018 at 2:04 PM
To: Condor-Users Mail List <condor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] interpolation using the python bindings

    Hi,
    
    I am submitting jobs using the python bindings.
    Some of the submit file items in the dictionary for htcondor.Submit( )
    object are like these:
    
    'foo' : '   "aaa $(Cluster) bbb"   '
    'bar' : '   "$ENV(HOSTNAME)"  '
    
    [no white spaces between single and double quotes, I just included for
    readability]
    
    but the interpolation does not seem to happen. condor_q -l shows them
    unmodified:
    
    foo = "aaa $(Cluster) bbb"
    bar = "$ENV(HOSTNAME)"
    
    what would be the correct way to get them resolved?
    Is that something I must do myself before feeding them to Submit( )?
    
    Thanks a lot in advance,
    Jose
    _______________________________________________
    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=gRgGjJ3BkIsb5y6s49QqsA&r=5PsfAQ_fLSL7f1osCT9L8r9FZaZ9NGnhiuijyN6ZNfM&m=f-OnwFKOEYHvntjf24Ey_tKbyqAHQZZVjqZ_wRlNZII&s=UBVpIQh4ADAEPaJMSZPXeIF-Fzj3dknSwnVTMO4IOmo&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=gRgGjJ3BkIsb5y6s49QqsA&r=5PsfAQ_fLSL7f1osCT9L8r9FZaZ9NGnhiuijyN6ZNfM&m=f-OnwFKOEYHvntjf24Ey_tKbyqAHQZZVjqZ_wRlNZII&s=r-r5iGOEFpbYW2H1LkKrUJgLM8amKbQAJ2hi8aHxirE&e=