Skip to content

Commit

Permalink
debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Sep 3, 2023
1 parent 6335963 commit c638a48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run-json.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from subprocess import Popen, PIPE
import sys

debug = False

def docmd(p, str, wait=True):
p.stdin.write((str + "\r\n").encode('ascii'))

Expand All @@ -12,6 +14,9 @@ def docmd(p, str, wait=True):

line = line.decode('ascii', 'ignore').rstrip('\n')

if debug:
print(line)

if len(line) < 5:
continue

Expand Down

0 comments on commit c638a48

Please sign in to comment.