Skip to content

Instantly share code, notes, and snippets.

View originme's full-sized avatar

Chaolong originme

  • Shenzhen
View GitHub Profile
@originme
originme / gist:43ea59a9f7dd3d5fc21461e840068f69
Created July 10, 2018 05:23
把主工程的 Image.xcassets分到不同的子工程bundle里面,并替换图片初始化方法
import os
import re
import shutil
class Bundle:
def __init__(self, name, assetsTarget, bundlePath):
self.name = name
self.bundlePath = bundlePath
self.assetsTarget = assetsTarget