Skip to content

Commit

Permalink
Removed the CREATE_NO_WINDOW constant for better compatibility
Browse files Browse the repository at this point in the history
A better fix for #1 that works with all versions.
  • Loading branch information
Kikasuru committed Aug 17, 2021
1 parent 0edbffd commit bf017f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A http server made for streaming Melty Blood
[Video Demonstration](https://www.youtube.com/watch?v=5g_8LMq0-JA)

## Dependencies
- [Python 3.7.x or higher](https://www.python.org/downloads/release/python-396/)
- [Python 3.6.x or higher](https://www.python.org/downloads/release/python-396/) (3.9.6 is highly recommended.)
- [flask](https://pypi.org/project/flask/)

## Installation
Expand Down
2 changes: 1 addition & 1 deletion melty_streaming/proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ProcessHook:
def get_pid(cls):
"""Grabs the PID of the Melty Blood executable"""
cmd = f"""tasklist /FI "WindowTitle eq {MELTY_TITLE}" /FO CSV /NH"""
task_data = subprocess.check_output(cmd, creationflags=subprocess.CREATE_NO_WINDOW).decode("UTF8")
task_data = subprocess.check_output(cmd, creationflags=0x08000000).decode("UTF8")

if not task_data.startswith("INFO: "):
# Split the output up and grab the PID
Expand Down

0 comments on commit bf017f0

Please sign in to comment.