Skip to content

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

Description

@RalphHan
  1. 当Script需要依赖某些package的时候(比如json),需要支持import。目前在Script中执行import会报找不到__import__,原因是exec中设置了 globals={"builtins": ...},删掉即可
  2. 需要支持多个输出(Yirui提的需求)。因为现在只支持一个输出,只能在多个script中写很多重复的if...else...
  3. 在支持多输出的时候,要兼容之前版本的工作流;如果难以实现,可以做一个新的节点,比如叫EnhancedScript

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions