From 19cd54988bbf096582ecc93b8d34ff1ba59690c5 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 4 Sep 2022 22:20:18 +0800 Subject: add python library env --- xmake/rules/python/xmake.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'xmake/rules/python') diff --git a/xmake/rules/python/xmake.lua b/xmake/rules/python/xmake.lua index d566fa849..da54ead22 100644 --- a/xmake/rules/python/xmake.lua +++ b/xmake/rules/python/xmake.lua @@ -23,6 +23,7 @@ rule("python.library") on_config(function (target) target:set("kind", "shared") target:set("prefixname", "") + target:add("runenvs", "PYTHONPATH", target:targetdir()) local soabi = target:extraconf("rules", "python.library", "soabi") if soabi then import("lib.detect.find_tool") -- cgit v1.3.1