def downloadGmshWin(self,arch,gmshVersion):
"""Downloads Gmsh from Gmsh website for Windows
Args:
arch (str): System architecture, e.g. 64/32.
gmshVersion (str): gmshVersion String, e.g. 2.12.0 .
Returns:
tuple: Tuple containing:
* fnDL (str): Donwload filename
* folderFn (str): Filename of extracted download files
"""
#Download Gmsh
url='http://gmsh.info/bin/Windows/gmsh-'+gmshVersion+'-Windows'+arch+'.zip'
folderFn, fnDL=self.downloadFileIfNotExist(url)
#Decompress
import zipfile
with zipfile.ZipFile(folderFn) as zf:
zf.extractall()
folderFn='gmsh-'+gmshVersion+'-Windows'
self.gmshPath='executables/gmsh/bin/gmsh.exe'
return fnDL,folderFn
评论列表
文章目录