[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


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

    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
    but the interpolation does not seem to happen. condor_q -l shows them
    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,
    HTCondor-users mailing list
    To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
    subject: Unsubscribe
    You can also unsubscribe by visiting
    The archives can be found at: