Skip to content

Instantly share code, notes, and snippets.

@joocer
Last active July 11, 2020 15:13
Show Gist options
  • Save joocer/eb1054dc9b0fe05402b767c99b80bc3b to your computer and use it in GitHub Desktop.
Save joocer/eb1054dc9b0fe05402b767c99b80bc3b to your computer and use it in GitHub Desktop.
A simple script to create and activate a virtual env, install requirements and running a main.py script
@echo off
set "VIRTUAL_ENV=%CD%\temp"
set "PATH=%VIRTUAL_ENV%\Scripts;%PATH%"
set "PROMPT=(VIRTUAL) $P$G%"
python -m venv temp
pip install -r requirements.txt
python main.py
set "PROMPT=$P$G"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment