Skip to content

Commit

Permalink
adapt to py3 Rucio setup. Fix #5156
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte authored Feb 25, 2022
1 parent 769a053 commit 19663b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/CRABClient/Commands/checkwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def getPFN(self, site='T2_CH_CERN', lfn='/store/user', username='jdoe'):
with open(scriptName, 'w') as ofile:
ofile.write(rucioScript)
cmd = 'eval `scram unsetenv -sh`; '
cmd += 'source /cvmfs/cms.cern.ch/rucio/setup-py3.sh 2>/dev/null; '
cmd += 'source /cvmfs/cms.cern.ch/rucio/setup-py3.sh >/dev/null; '
cmd += 'export RUCIO_ACCOUNT=%s; ' % username
cmd += 'python3 %s; ' % scriptName
rucioOut, rucioErr, exitcode = execute_command(cmd)
Expand Down

0 comments on commit 19663b1

Please sign in to comment.