alibaba / pipcook

Machine learning platform for Web developers
https://alibaba.github.io/pipcook/
Apache License 2.0
2.55k stars 209 forks source link

cli: support relative path for script uri #776

Closed FeelyChau closed 3 years ago

FeelyChau commented 3 years ago

As the RFC-1808, we could support the relative path for script uri like:

{
    "datasource": "file:relative/path/to/script.js"
}

The real path is resolved as ${process.cwd()}/relative/path/to/script.js.