https://python-packaging-zh.readthedocs.io/zh_CN/latest/non-code-files.html
在MANIFEST.in
中指定非python
的文件,這樣這些特殊文件就會被複制到site-packages
中,另外需要在include_package_data=True
在加載這些文件的時候需要用__file__
變量,再加相對路徑
https://python-packaging-zh.readthedocs.io/zh_CN/latest/non-code-files.html
在MANIFEST.in
中指定非python
的文件,這樣這些特殊文件就會被複制到site-packages
中,另外需要在include_package_data=True
在加載這些文件的時候需要用__file__
變量,再加相對路徑