You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for a great library. When importing TextGrad, a logs folder is created automatically with seemingly no option to not create the logs folder. Is there a way?
Best regards,
Niclas Kjäll-ohlsson
The text was updated successfully, but these errors were encountered:
I do this workaround now before importing TextGrad so that the logs folder is created in the tmp dir instead of cwd:
import os
import textgrad
# This is a workaround to avoid that TextGrad creates a logs folder in the current working directory
# and instead creates it in the temporary directory.
cwd: str = os.getcwd()
os.chdir(tempfile.gettempdir())
import TextGrad as tg
# Reset the current working directory
os.chdir(cwd)
Hello,
Thank you for a great library. When importing TextGrad, a logs folder is created automatically with seemingly no option to not create the logs folder. Is there a way?
Best regards,
Niclas Kjäll-ohlsson
The text was updated successfully, but these errors were encountered: