Advertisement
J2897

NPP_VENV

Oct 9th, 2021 (edited)
1,086
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.34 KB | None | 0 0
  1. @echo OFF
  2. set FILE_PATH=%1
  3.  
  4. REM Add this to NppExec and change PR_NAME to the the project name for each virtual environment.
  5. :: npp_save
  6. :: cd  "$(CURRENT_DIRECTORY)"
  7. :: cmd /c "C:\Users\J2897\Code\Batch\NPP_VENV.bat" $(FULL_CURRENT_PATH) PR_NAME
  8.  
  9. call C:\Users\J2897\Code\Python\%2\venv\Scripts\activate.bat
  10. python %FILE_PATH%
  11. deactivate
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement