setup.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:PyFRAP 作者: alexblaessle 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号