Ikomia-dev / IkomiaApi

Deploy Computer Vision solutions with a few lines of code.
https://ikomia-dev.github.io/python-api-documentation/
Apache License 2.0
226 stars 13 forks source link

Save a workflow in current folder #21

Closed gdemarcq closed 1 year ago

gdemarcq commented 1 year ago

Describe the bug When I save a workflow in the current folder, I have a runtime error (Invalid argument).

To Reproduce

from ikomia.dataprocess.workflow import Workflow

# Init your workflow
wf = Workflow()

# Export your workflow as a JSON file
wf.save("test.json")

Expected behavior

I would expect it to work.

Environment:

Additional context If I use the path "./test.json", it works.

from ikomia.dataprocess.workflow import Workflow

# Init your workflow
wf = Workflow()

# Export your workflow as a JSON file
wf.save("./test.json")
LudoBar commented 1 year ago

Completed in Ikomia-dev/IkomiaCore@bb46e0ec16426aa6ffa0c349a5e797aaf87b3ec3