problems with reading from .env files
When I try and run my code in fullscreen mode i get error from reading the .env file,
but in the side veiw,
import os import things repeat_checker = False def EasterEggChecker(command): global repeat_checker prize = 0 prize = int(os.getenv('prize')) phrase = os.getenv('easter_egg') if command == phrase and not repeat_checker: repeat_checker = True os.system('clear') print("Nice, you smart, you got the easter egg, now take a screen shot of this and message/comment on the repl, congrats") things.gold += prize elif command == phrase and repeat_checker: print(os.getenv("hatsDown"))
Officially, repl.run will not support environment variables (.env) because it can be leaked. (Repl.run is the full screen version)
We don't load them for security reasons (can be leaked).
If this helped you, please upvote this comment.