mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-13 22:16:45 +00:00
bd1b56e5c2
Other changes include: * host: rename windows_install_deps.py -> install_deps.py and update it to support multiple operating systems. * host: restore assertions and fix most static analysis errors related to type aliases and checks. * host: catch exceptions thrown by usb.core.find() in usbGetDeviceEndpoints(). * host: move code to unconditionally enable 32-bit paths under Windows to uiStartServer() and cliInitialize(), respectively. * host: remove incomplete file if the ongoing transfer was cancelled and we're not dealing with a NSP file.
17 lines
613 B
Python
17 lines
613 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
|
|
from platform import system
|
|
|
|
root_dir = dirname(__file__)
|
|
|
|
requirements_file = ('requirements-win32.txt' if system() == 'Windows' else 'requirements.txt')
|
|
|
|
run([executable, '-m', 'pip', 'install', '-r', join(root_dir, requirements_file)])
|
|
input('Press enter to close')
|