Skip to content

Commit

Permalink
add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-k0 committed Oct 7, 2024
1 parent 8ab91d7 commit 7071716
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,6 @@ FodyWeavers.xsd
.venv
WorldOfTanks
ModManagerGUI/Core/
/ModManagerGUI/build
/ModManagerGUI/dist
*.spec
4 changes: 4 additions & 0 deletions ModManagerGUI/invoker.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,13 @@ def invoke(self, args:list, json_output=True):
# prepend installation path to args list
args = [self.installation_path] + args
# invoke the ModManagerCore with the args list

print("Running command: ", args)

popen = subprocess.Popen(args, stdout=subprocess.PIPE)
popen.wait()
output = popen.stdout.read()
print("Core output: ", output)
return output

def set_game_installation_dir(self, path:str)->bool:
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Following is an unfinished guide on how to install `ModManagerCore` and `ModMana

> [!TIP]
> You can also execute the `build_linux.sh` script after setting up a venv with pyside6 and pyinstaller installed.
> Also, builds can be found in the `Release` tab.
> Also, builds can be found in the [release](https://github.com/sam-k0/WoTModAssistantCore/releases) tab.
1. Download or build the project.
2. Run `ModManagerGUI`.
Expand All @@ -50,7 +50,7 @@ Following is an unfinished guide on how to install `ModManagerCore` and `ModMana

### Windows
> [!IMPORTANT]
> Please download the latest `Windows release` build from the `Release` tab.
> Please download the latest `Windows release` build from the [release](https://github.com/sam-k0/WoTModAssistantCore/releases) tab.
1. Download and unzip the latest release.
2. Run `ModManagerGUI.exe`.
Expand Down

0 comments on commit 7071716

Please sign in to comment.