mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-09 20:21:45 +00:00
a016ba92db
* Added text files with required module information, which can be used with pip. * Added a batch file to build a ZIP archive with a standalone copy of the script, which can be used to run it under Windows systems without Python. * Further tweaked the way the progress bar window works. * Debug messages are no longer printed to the log. * Rearranged some parts of the code.
14 lines
505 B
Python
14 lines
505 B
Python
# Copyright (c) 2019-2021 Ian Burgwin
|
|
|
|
# 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')
|