Here a trivial submission file:
executable = /path/to/myexecutable
error = test.err
output = test.out
log = test.log
request_memory = 1024
request_cpus = 1
queue
myexecutable
is a python executable
#!/usr/bin/env python
import htcondor
# here some code that retrieves the
# value of a descriptor, e.g. 1024 for 'request_memory'
Once the executable started by condor (e.g. via condor_submit) is there some ways to retrieve the values of the descriptors provided in the submission file ? (including the values of the expanded macros, so directly parsing the file would not do it)