Hi there,
(I am new in Python)
Is there a way to read from a file uploaded with the zipped algorithm?
I want to load parameters outside of the algo_strategy.py
Reading from this file works on my local machine but crashes on the server.
This is the code snipped:
import os
…
path = “algos/my-algo/params/”
if os.path.exists(path+“file.txt”):
f = open(path+“file.txt”, “r”)
content = f.read()
Also: I don’t need to create or delete files. Just read the files I uploaded.
The parameter I’d like to use are too many to write them into actual code…
-Jakob