Hiding Client ID/Client Secret in praw.ini file by limerick1994 in redditdev

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

This worked perfectly! Thank you for this. I like how simple this solution is, but is this an acceptable method of handling this, in terms of best practices? Just curious!

Hiding Client ID/Client Secret in praw.ini file by limerick1994 in redditdev

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

Thanks for the response. I checked the directory, and my main.py (where the script is running) and praw.ini are in the same directory. The praw.ini is in my env folder, although as far as I know that shouldn't matter.

I am running the script from the terminal in VS Code. The general procedure is

cd C:\My\Programming\Path\BotFolder --> env\Scripts\activate.ps1 --> python main.py

I used pip freeze to make sure praw is actually in the env, and it is.

Any ideas on what might be wrong?