Skip to content

Instantly share code, notes, and snippets.

@maptastik
Last active September 25, 2019 18:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maptastik/735efdbe871cd48ffcb6fb1f3411ae34 to your computer and use it in GitHub Desktop.
Save maptastik/735efdbe871cd48ffcb6fb1f3411ae34 to your computer and use it in GitHub Desktop.
rem If you want to open CMD and see your script run
@echo
rem Call activate.bat located for your conda installation
call C:\Users\some_user\AppData\Local\Continuum\Miniconda3\Scripts\activate.bat
rem Activate your environment, change directory to location of your script, run script.
activate some_environment && cd C:\Users\some_user\python_script_directory && python python_script.py
rem I can't remember why I added this...You might not need it.
@pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment