Skip to content
Snippets Groups Projects
Commit 94a8532c authored by scott snyder's avatar scott snyder
Browse files

OutputStreamAthenaPool: python 3 fixes

No need to create a subprocess to find the current directory!
parent e8df3bb2
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
## creation: David Cote (May 2008) ## ## creation: David Cote (May 2008) ##
######################################################## ########################################################
from __future__ import print_function from __future__ import print_function
import os
class AugmentedStreamBase: class AugmentedStreamBase:
"""This class manages common methods of AugmentedPoolStream and AugmentedByteStream.""" """This class manages common methods of AugmentedPoolStream and AugmentedByteStream."""
...@@ -272,9 +273,7 @@ class AugmentedByteStream( AugmentedStreamBase ): ...@@ -272,9 +273,7 @@ class AugmentedByteStream( AugmentedStreamBase ):
svcMgr.ToolSvc += self.bsCopyTool svcMgr.ToolSvc += self.bsCopyTool
#default output directory #default output directory
import subprocess outDir = os.getcwd()
cmd='pwd'
(statusCode,outDir) = subprocess.getstatusoutput(cmd)
outDir+="/" outDir+="/"
# BS output Svc # BS output Svc
......
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