Skip to content

Commit

Permalink
Workaround for console congestion
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus committed Mar 30, 2024
1 parent ddb797c commit 71bcd9f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nrp-devtools"
version = "0.1.23"
version = "0.1.24"
description = "NRP repository development tools"
readme = "README.md"
authors = [{ name = "Miroslav Simek", email = "miroslav.simek@cesnet.cz" }]
Expand Down
16 changes: 14 additions & 2 deletions src/nrp_devtools/commands/develop/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,21 @@ def _kill_process_tree(self, process_tree: subprocess.Popen):
def _read_python_output(self):
while True:
try:
line = self.python_server_process.stdout.readline()
if not self.python_server_process or not self.python_server_process.stdout:
break
line: bytes = self.python_server_process.stdout.readline()
if line:
print(line.decode("utf-8"), end="")
for r in range(5):
try:
sys.stdout.buffer.write(line)
except:
time.sleep(0.1)
continue
try:
sys.stdout.buffer.flush()
break
except:
time.sleep(0.1)
except:
break

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"semantic-ui": dict(
entry={
"{{cookiecutter.name}}_search": "./js/{{cookiecutter.name}}/search/index.js",
"{{cookiecutter.name}}_deposit_form": "./js/{{cookiecutter.name}}/forms/deposit/index.js",
"{{cookiecutter.name}}_deposit_form": "./js/{{cookiecutter.name}}/forms/index.js",
},
dependencies={},
devDependencies={},
Expand Down

0 comments on commit 71bcd9f

Please sign in to comment.