Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This is meant to be double-clicked from File Explorer. | ||
|
||
# This doesn't import pip as a module in case the way it's executed changes, which it has in the past. | ||
# Instead we call it like we would in the command line. | ||
|
||
from subprocess import run | ||
from os.path import dirname, join | ||
from sys import executable | ||
|
||
root_dir = dirname(__file__) | ||
|
||
run([executable, '-m', 'pip', 'install', '--user', '-r', join(root_dir, 'requirements-win32.txt')]) | ||
input('Press enter to close') |