【发布时间】:2013-05-19 18:09:43
【问题描述】:
我有一个 SCons 工具,当我将 mytool.py 和 __init__.py 放在 site_scons/site_tools/mytool 下时,它可以工作。
现在我想将其更改为通过其他地方的绝对路径进行引用。
所以我通过以下方式调用它:
mytoolpath = '/tools/mytool'
env = Environment(tools=['mytool'], toolpath=mytoolpath)
除了EnvironmentError: No tool named 'mytool': not a Zip file:
mytool.py 位于/tools/mytool 所以我真的不明白问题出在哪里。有人能解释一下吗?
【问题讨论】:
标签: scons