I tried to create a new logic directory under the Python Function directory generated by CIL to place some logic, but I can't seem to reference it? So currently Function can only be run as a single file, right? Or maybe I missed something
Hi - I think it can be done, maybe take a look here? https://github.com/open-runtimes/examples/tree/main/python/send_message/functions
Thanks, I added before the quote . It works, but it's a bit weird
[SOLVED]A Function only support Single Python File ?
The dot? It's a relative import because the path is a little different in the runtime container
I got this problem again on reading file , usually it will work on with open('templates.txt','r') , but i try
many ways to call be failed
I'm not really sure if this works but, what if you do this?:
import os
folder = os.path.dirname(os.path.realpath(__file__))
file = os.path.join(folder, 'templates.txt')
open(file,'r')
this can be solved, thans!
[SOLVED] A Function only support Single Python File ?
Recommended threads
- The file size is either not valid or exc...
Hello, I am receiving the following error when I am trying to deploy a function from my local. ``` > appwrite push functions --function-id xxxxxxxxx ℹ Info: Va...
- How does sending email from the Appwrite...
I noticed that the pricing page mentions “Messages – 1000 per month” for the Free plan. Is this different from sending emails? When I try to send an email usin...
- Appwrite functions dart runtime (3.7 sup...
It seems that currently Appwrite functions only support Dart runtime to 3.5, for my code I need dart 3.7. Is there any plan to support Dart3.7 runtime soon. Is ...