예제 #1
0
파일: CmdRule.py 프로젝트: Moxikai/pubMunch
 def openIn(self, autoDecompress=True):
     """open the input file for reading in the ExRun process"""
     path = self.__setupIn()
     if fileOps.isCompressed(path) and autoDecompress:
         return fileOps.openz(path)
     else:
         return open(path)
예제 #2
0
 def openIn(self, autoDecompress=True):
     """open the input file for reading in the ExRun process"""
     path = self.__setupIn()
     if fileOps.isCompressed(path) and autoDecompress:
         return fileOps.openz(path)
     else:
         return open(path)
예제 #3
0
파일: CmdRule.py 프로젝트: Moxikai/pubMunch
 def openOut(self, autoCompress=True):
     """open the output file for writing from the ExRun process"""
     path = self.__setupOut(autoCompress)
     if fileOps.isCompressed(path) and autoCompress:
         return fileOps.openz(path, "w")
     else:
         return open(path, "w")
예제 #4
0
 def openOut(self, autoCompress=True):
     """open the output file for writing from the ExRun process"""
     path = self.__setupOut(autoCompress)
     if fileOps.isCompressed(path) and autoCompress:
         return fileOps.openz(path, "w")
     else:
         return open(path, "w")