Skip to content
Snippets Groups Projects
Commit f308cace authored by Marcelo Vogel's avatar Marcelo Vogel Committed by Graeme Stewart
Browse files

Remove = after pre/postInclude in output of GetTfCommand.py [ATLASAMITG-99]...

Remove = after pre/postInclude in output of GetTfCommand.py [ATLASAMITG-99] (PyJobTransforms-03-00-24)

	* scripts/GetTfCommand.py
	- Fix bug preventing correct output for option --printOnlyCmdLine
	* python/trfAMI.py
	- Remove '=' after pre/postInclude in _argsToString() [ATLASAMITG-99]
	* Tagging PyJobTransforms-03-00-24
parent d3dffd25
No related branches found
Tags 1.6.3
No related merge requests found
......@@ -99,7 +99,7 @@ class TrfConfig:
# athenaopts are special - space separated
if "athenaopts" in k:
string += " " + k + "=" + "'" + " ".join(v).replace("'", "\\'") + "'"
elif "Exec" in k:
elif "Exec" in k or "Include" in k:
# Special intermediate treatment for pre/postExec from prodsys
string += " " + k + " " + " ".join(["'"+element.replace("'", "\\'")+"'" for element in v])
else:
......
......@@ -48,8 +48,7 @@ def main():
# only print the command line, allows stuff like
# pathena --trf "`GetTfCommand --AMI q1234 --printOnlyCmdLine` --inputFile bla.input --maxEvents 42"
trfCmdLine = tag.trfs[0].name + " " + tag.trfs[0]._argsToString(tag.trfs[0].physics)
trfCmdLine.replace('"', '\\' + '"')
print trfCmdLine
print trfCmdLine.replace('"', '\\' + '"')
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment