glifLib2.py 文件源码

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

项目:inter 作者: rsms 项目源码 文件源码
def writeContents(self):
        """Write the contents.plist file out to disk. Call this method when
        you're done writing glyphs.
        """
        from plistlib import writePlistToString
        contentsPath = os.path.join(self.dirName, "contents.plist")
        # We need to force Unix line endings, even in OS9 MacPython in FL,
        # so we do the writing to file ourselves.
        plist = writePlistToString(self.contents)
        f = open(contentsPath, WRITE_MODE)
        f.write(plist)
        f.close()

    # read caching
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号