Unverified Commit 31ab453d authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

resolve FROM path before sending modelfile (#1211)

parent 35c4b5ec
......@@ -82,6 +82,10 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
path = filepath.Join(home, path[2:])
}
if !filepath.IsAbs(path) {
path = filepath.Join(filepath.Dir(filename), path)
}
bin, err := os.Open(path)
if errors.Is(err, os.ErrNotExist) && c.Name == "model" {
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment