def extractFromSDFile(sdFile, extractFolder, fileToExtract=None):
    
    # 'Build' 7zip command line arguments
    # -y switch suppresses the overwrite user query if the file already exists.
    exeArgs = '{} e {} -o{}'.format(sevenZipExePath, sdFile, extractFolder)
    if fileToExtract:
        exeArgs += ' {}'.format(fileToExtract)
    exeArgs += ' -y'
    #print sectionBreak1
    exitCode = subprocess.call(exeArgs)
    return exitCode
Extract file from compressed .sd file
dataset/ETHPy150Open Esri/ops-server-config/SupportFiles/GetSDFiles.py/extractFromSDFile