Ability to run Python3 Script through IDE, Command Prompt, but not double-click or Task Scheduler
So, I wrote a script that dumps the bid data from the odds aggregation site and outputs everything to CSV. My script works fine, however I can only run it from Spyder. Whenever I double click the PY file, the terminal opens and quickly closes. After talking with him for a while, I also found that I could run it through the command line.
I have a program / script line pointing to my python3: C: \ Users \ path \ AppData \ Local \ Continuum \ Anaconda3 \ python.exe
And my argument line points to script \ networkName \ path \ moneylineScraper.py
Best Random Scenario I would like to run this script through the task scheduler, but I also cannot run it when I double click the Py file. Any help would be appreciated!
An alternative is to create a bat file and then execute it.
New bat file:
- change directory to python script file.
- using the full path, execute python with the script file as argument.
- End batch file.
Make this bat executable with enough preface and execute it.