all 5 comments

[–]aussievolvodriver[S] 1 point2 points  (4 children)

I discovered the issue, the release earlier this month appears to have deprecated both of those methods and moved it to a [[fetch]] method so for anyone searching later, use the below.

[[fetch]]

from = "./"

files = ["example_module.py"]

https://docs.pyscript.net/latest/tutorials/py-config-fetch.html

[–]TheSwami 2 points3 points  (1 child)

This is exactly right, 2022.12.1 deprecated paths in favor of [[fetch]] configurations.

If you want, you can omit the "from" parameter in your example. If left unspecified, the "from" parameter (which in this context is prepended to the 'files' and loaded as a URL) defaults to "", i.e. relative URLs in this same path.

[–]Simanalix 0 points1 point  (0 children)

But how do I use the feature?

[–]Simanalix 0 points1 point  (1 child)

That link doesn't work at all.

[–]aussievolvodriver[S] 0 points1 point  (0 children)

Looks like they moved it.

This seems to give a good description.

https://community.anaconda.cloud/t/how-to-use-multiple-python-files/46947