添加element图标,并使用lfs
Build and Publish / Run (push) Successful in 51s
Details
Build and Publish / Run (push) Successful in 51s
Details
This commit is contained in:
parent
546172ee07
commit
0412c3f7ef
Binary file not shown.
|
@ -5,9 +5,15 @@ paths = os.path.dirname(__file__).replace("\\", "/")
|
|||
pickle_jar = {}
|
||||
print("packing...")
|
||||
for i in os.listdir(paths+"/res"):
|
||||
print(f"pack {i}")
|
||||
with open(paths+"/res/"+i, "rb") as file:
|
||||
pickle_jar[i.split(".")[0]] = base64.b64encode(file.read())
|
||||
if (".pack" in i):
|
||||
print(f"insert {i}")
|
||||
with open(paths+"/res/"+i, "rb") as file:
|
||||
pkg_jar = pickle.load(file)
|
||||
pickle_jar.update(pkg_jar)
|
||||
else:
|
||||
print(f"pack {i}")
|
||||
with open(paths+"/res/"+i, "rb") as file:
|
||||
pickle_jar[i.split(".")[0]] = base64.b64encode(file.read())
|
||||
print("write...")
|
||||
with open(paths+"/../magictk/res.pickle", "wb") as file:
|
||||
pickle.dump(pickle_jar, file)
|
||||
|
|
Loading…
Reference in New Issue