From 94a8532ca205c750d532fcc63b4f813677e011ba Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Fri, 24 Jul 2020 05:36:34 +0200 Subject: [PATCH] OutputStreamAthenaPool: python 3 fixes No need to create a subprocess to find the current directory! --- .../OutputStreamAthenaPool/python/MultipleStreamManager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Database/AthenaPOOL/OutputStreamAthenaPool/python/MultipleStreamManager.py b/Database/AthenaPOOL/OutputStreamAthenaPool/python/MultipleStreamManager.py index 8886c039283..7fea06f370e 100644 --- a/Database/AthenaPOOL/OutputStreamAthenaPool/python/MultipleStreamManager.py +++ b/Database/AthenaPOOL/OutputStreamAthenaPool/python/MultipleStreamManager.py @@ -6,6 +6,7 @@ ## creation: David Cote (May 2008) ## ######################################################## from __future__ import print_function +import os class AugmentedStreamBase: """This class manages common methods of AugmentedPoolStream and AugmentedByteStream.""" @@ -272,9 +273,7 @@ class AugmentedByteStream( AugmentedStreamBase ): svcMgr.ToolSvc += self.bsCopyTool #default output directory - import subprocess - cmd='pwd' - (statusCode,outDir) = subprocess.getstatusoutput(cmd) + outDir = os.getcwd() outDir+="/" # BS output Svc -- GitLab