Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script节点支持import和多输出 #3

Open
RalphHan opened this issue Dec 27, 2024 · 0 comments
Open

Script节点支持import和多输出 #3

RalphHan opened this issue Dec 27, 2024 · 0 comments
Assignees

Comments

@RalphHan
Copy link
Contributor

RalphHan commented Dec 27, 2024

  1. 当Script需要依赖某些package的时候(比如json),需要支持import。目前在Script中执行import会报找不到__import__,原因是exec中设置了 globals={"builtins": ...},删掉即可
  2. 需要支持多个输出(Yirui提的需求)。因为现在只支持一个输出,只能在多个script中写很多重复的if...else...
  3. 在支持多输出的时候,要兼容之前版本的工作流;如果难以实现,可以做一个新的节点,比如叫EnhancedScript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants