我的pip包setup.py如下:
from distutils.core import setup
setup(
name='pythpackage',
version='1.0',
scripts=['native.sh'],
data_files=[('/etc/opt/chrome/native-messaging-hosts/', ['io.nutty.terminal.json'])]
)
当我执行“sudo python setup.py install”时,它按照预期在/ etc / opt / chrome / native-messaging-hosts /中安装io.nutty.terminal.json。但是当我做“python setup.py install --user”时,如何让io.nutty.terminal.json进入目录〜/ .config / chrome / NativeMessagingHosts?