未验证 提交 36de2cac 编写于 作者: R Rudá Moura

setup.py: Fix location of plugins and resources.

Signed-off-by: NRudá Moura <rmoura@redhat.com>
上级 8d603914
......@@ -89,7 +89,7 @@ def _get_plugin_resource_files(path):
for root, _, files in sorted(os.walk(path)):
for name in files:
fullname = os.path.join(root, name)
flist.append(fullname[len('avocado/plugins/'):])
flist.append(fullname[len('avocado/core/plugins/'):])
return flist
......@@ -118,7 +118,7 @@ if __name__ == '__main__':
'avocado.core.restclient.cli.args',
'avocado.core.restclient.cli.actions'],
package_data={'avocado.core.plugins': _get_plugin_resource_files(
'avocado/plugins/resources')},
'avocado/core/plugins/resources')},
data_files=get_data_files(),
scripts=['scripts/avocado',
'scripts/avocado-rest-client'])
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册