Skip to content

Commit

Permalink
autopep8 action fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
egede authored Apr 24, 2024
1 parent a2465d0 commit acd10d3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ganga/GangaLHCb/Lib/RTHandlers/GaudiExecRTHandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,19 @@ def flush_streams(pipe):
# Extract any/_all_ (b/g)zip files on the WN
extractAllTarFiles('.')
runenv = dict()
result = subprocess.run(["bash", "-lc",
"source /cvmfs/lhcb.cern.ch/lib/LbEnv && printenv"],
capture_output=True, encoding='utf-8')
for line in result.stdout.split('\\n'):
varval = line.strip().split('=')
if len(varval) < 2:
pass
else:
content = ''.join(varval[1:])
if not str(content).startswith('() {'):
runenv[varval[0]] = content
print("Executing: %s" % '###COMMAND###'+' '+' '.join(sys.argv[1:]))
# Execute the actual command on the WN
Expand Down

0 comments on commit acd10d3

Please sign in to comment.