修复打包,未将资源打包进去
This commit is contained in:
1 parent
8e01ec56d4
commit
b75bf4b6ed
2 files changed
+6
-2
No files matched your search
+2
-2
@@ -104,10 +104,10 @@ if package_path:
|
||||
|
||||
root_path = os.path.join(package_path, 'pywxdump')
|
||||
datas_741258 = []
|
||||
for root, dirs, files in os.walk(root_path):
|
||||
for root, dirs, files in os.walk(os.path.join(root_path,"ui")):
|
||||
for file in files:
|
||||
file_path = os.path.join(root, file)
|
||||
datas_741258.append(f'''(r'{file_path}', r'{os.path.dirname(root_path.replace(package_path, ""))}' )''')
|
||||
datas_741258.append(f'''(r'{file_path}', r'{os.path.dirname(file_path.replace(package_path, ""))}' )''')
|
||||
datas_741258 = ",\n".join(datas_741258)
|
||||
print(datas_741258)
|
||||
# 生成 spec 文件
|
||||
|
||||
Reference in new issue
Block a user